-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from samuelOsborne/v1.2.0
v1.2.0
- Loading branch information
Showing
17 changed files
with
6,274 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Freeze click example</title> | ||
<script type="module" src="../../dist/lottie-interactive.js"></script> | ||
</head> | ||
|
||
<body> | ||
<h1> | ||
Interaction: 'freeze-click' | ||
</h1> | ||
<div style="text-align: center"> | ||
<lottie-interactive path="../animations/running-pigeon.json" | ||
interaction="freeze-click" | ||
autoplay | ||
loop> | ||
</lottie-interactive> | ||
</div> | ||
</body> | ||
</html> | ||
|
||
<style> | ||
h1 { | ||
text-align: center; | ||
font-family: 'Verdana', serif; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Morph lock example</title> | ||
<script type="module" src="../../dist/lottie-interactive.js"></script> | ||
</head> | ||
|
||
<body> | ||
<h1> | ||
Interaction: 'morph-lock' | ||
</h1> | ||
<div style="text-align: center"> | ||
<lottie-interactive path="../animations/sun-moon.json" | ||
interaction="morph-lock"> | ||
</lottie-interactive> | ||
</div> | ||
</body> | ||
</html> | ||
|
||
<style> | ||
h1 { | ||
text-align: center; | ||
font-family: 'Verdana', serif; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Speed example</title> | ||
<script type="module" src="../../dist/lottie-interactive.js"></script> | ||
</head> | ||
|
||
<body> | ||
|
||
<div style="text-align: center"> | ||
<lottie-interactive path="../animations/running-pigeon.json" | ||
speed="0.1" | ||
autoplay | ||
loop> | ||
</lottie-interactive> | ||
</div> | ||
<h1> | ||
Speed: 0.1 | ||
</h1> | ||
|
||
<div style="text-align: center"> | ||
<lottie-interactive path="../animations/running-pigeon.json" | ||
speed="0.5" | ||
autoplay | ||
loop> | ||
</lottie-interactive> | ||
</div> | ||
<h1> | ||
Speed: 0.5 | ||
</h1> | ||
|
||
<div style="text-align: center"> | ||
<lottie-interactive path="../animations/running-pigeon.json" | ||
speed="1" | ||
autoplay | ||
loop> | ||
</lottie-interactive> | ||
</div> | ||
<h1> | ||
Speed: 1 | ||
</h1> | ||
|
||
<div style="text-align: center"> | ||
<lottie-interactive path="../animations/running-pigeon.json" | ||
speed="2" | ||
autoplay | ||
loop> | ||
</lottie-interactive> | ||
</div> | ||
<h1> | ||
Speed: 2 | ||
</h1> | ||
|
||
<div style="text-align: center"> | ||
<lottie-interactive path="../animations/running-pigeon.json" | ||
speed="3" | ||
autoplay | ||
loop> | ||
</lottie-interactive> | ||
</div> | ||
|
||
<h1> | ||
Speed: 3 | ||
</h1> | ||
|
||
<div style="text-align: center"> | ||
<lottie-interactive path="../animations/running-pigeon.json" | ||
speed="4" | ||
autoplay | ||
loop> | ||
</lottie-interactive> | ||
</div> | ||
<h1> | ||
Speed: 4 | ||
</h1> | ||
|
||
<div style="text-align: center"> | ||
<lottie-interactive path="../animations/running-pigeon.json" | ||
speed="5" | ||
autoplay | ||
loop> | ||
</lottie-interactive> | ||
<h1> | ||
Speed: 5 | ||
</h1></div> | ||
</body> | ||
</html> | ||
|
||
<style> | ||
h1 { | ||
text-align: center; | ||
font-family: 'Verdana', serif; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Viewbox example</title> | ||
<script type="module" src="../../dist/lottie-interactive.js"></script> | ||
</head> | ||
|
||
<body> | ||
|
||
<div style="text-align: center"> | ||
<lottie-interactive path="../animations/running-pigeon.json" | ||
speed="0.1" | ||
autoplay | ||
loop | ||
view-box="0 0 600 600"> | ||
</lottie-interactive> | ||
</div> | ||
<h1> | ||
view-box: "0 0 600 600" (original) | ||
</h1> | ||
|
||
<div style="text-align: center"> | ||
<lottie-interactive path="../animations/running-pigeon.json" | ||
speed="0.1" | ||
autoplay | ||
loop | ||
view-box="0 0 300 300"> | ||
</lottie-interactive> | ||
</div> | ||
<h1> | ||
view-box: "0 0 300 300" | ||
</h1> | ||
|
||
<div style="text-align: center"> | ||
<lottie-interactive path="../animations/running-pigeon.json" | ||
speed="0.1" | ||
autoplay | ||
loop | ||
view-box="300 300 300 300"> | ||
</lottie-interactive> | ||
</div> | ||
<h1> | ||
view-box: "300 300 300 300" | ||
</h1> | ||
|
||
<div style="text-align: center"> | ||
<lottie-interactive path="../animations/running-pigeon.json" | ||
speed="0.1" | ||
autoplay | ||
loop | ||
view-box="0 300 300 300"> | ||
</lottie-interactive> | ||
</div> | ||
<h1> | ||
view-box: "0 300 300 300" | ||
</h1> | ||
|
||
<div style="text-align: center"> | ||
<lottie-interactive path="../animations/running-pigeon.json" | ||
speed="0.1" | ||
autoplay | ||
loop | ||
view-box="150 150 300 300"> | ||
</lottie-interactive> | ||
</div> | ||
<h1> | ||
view-box: "150 150 300 300" | ||
</h1> | ||
|
||
<div style="text-align: center"> | ||
<lottie-interactive path="../animations/running-pigeon.json" | ||
speed="0.1" | ||
autoplay | ||
loop | ||
view-box="-300 -300 1200 1200"> | ||
</lottie-interactive> | ||
</div> | ||
<h1> | ||
view-box: "-300 -300 1200 1200" | ||
</h1> | ||
</body> | ||
</html> | ||
|
||
<style> | ||
h1 { | ||
text-align: center; | ||
font-family: 'Verdana', serif; | ||
} | ||
</style> |
Binary file not shown.
Oops, something went wrong.