-
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.
feat(Interactions): Added possibility to mix 'on-show' with all base …
…interaction types
- Loading branch information
1 parent
dc1649f
commit ce701b9
Showing
17 changed files
with
484 additions
and
5 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
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,52 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Show-and-click example</title> | ||
<script type="module" src="../../dist/lottie-interactive.js"></script> | ||
</head> | ||
|
||
<body> | ||
<h1> | ||
Interaction: 'Show-and-click' | ||
</h1> | ||
<div class="filler"> | ||
<h1>Scroll down!</h1> | ||
</div> | ||
<h1>Interaction: 'show-and-click'</h1> | ||
<div class="animation-container"> | ||
<lottie-interactive path="../animations/lottie-interactive.json" | ||
interaction="show-and-click"> | ||
</lottie-interactive> | ||
</div> | ||
</body> | ||
</html> | ||
|
||
<style> | ||
h1 { | ||
text-align: center; | ||
font-family: 'Verdana', serif; | ||
margin: 0; | ||
background-color: palevioletred; | ||
color: white; | ||
} | ||
|
||
.filler { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: 100%; | ||
height: 100vh; | ||
background-color: palevioletred; | ||
color: #ffffff; | ||
text-align: center; | ||
font-family: "Verdana", serif; | ||
} | ||
|
||
.animation-container { | ||
width: 100%; | ||
height: 100%; | ||
background-color: #ADFF9E; | ||
text-align: center; | ||
} | ||
</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,52 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Show-and-click example</title> | ||
<script type="module" src="../../dist/lottie-interactive.js"></script> | ||
</head> | ||
|
||
<body> | ||
<h1> | ||
Interaction: 'show-and-freeze-click' | ||
</h1> | ||
<div class="filler"> | ||
<h1>Scroll down!</h1> | ||
</div> | ||
<h1>Interaction: 'show-and-freeze-click'</h1> | ||
<div class="animation-container"> | ||
<lottie-interactive path="../animations/lottie-interactive.json" | ||
interaction="show-and-freeze-click"> | ||
</lottie-interactive> | ||
</div> | ||
</body> | ||
</html> | ||
|
||
<style> | ||
h1 { | ||
text-align: center; | ||
font-family: 'Verdana', serif; | ||
margin: 0; | ||
background-color: palevioletred; | ||
color: white; | ||
} | ||
|
||
.filler { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: 100%; | ||
height: 100vh; | ||
background-color: palevioletred; | ||
color: #ffffff; | ||
text-align: center; | ||
font-family: "Verdana", serif; | ||
} | ||
|
||
.animation-container { | ||
width: 100%; | ||
height: 100%; | ||
background-color: #ADFF9E; | ||
text-align: center; | ||
} | ||
</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,52 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Show-and-click example</title> | ||
<script type="module" src="../../dist/lottie-interactive.js"></script> | ||
</head> | ||
|
||
<body> | ||
<h1> | ||
Interaction: 'show-and-hover' | ||
</h1> | ||
<div class="filler"> | ||
<h1>Scroll down!</h1> | ||
</div> | ||
<h1>Interaction: 'show-and-hover'</h1> | ||
<div class="animation-container"> | ||
<lottie-interactive path="../animations/lottie-interactive.json" | ||
interaction="show-and-hover"> | ||
</lottie-interactive> | ||
</div> | ||
</body> | ||
</html> | ||
|
||
<style> | ||
h1 { | ||
text-align: center; | ||
font-family: 'Verdana', serif; | ||
margin: 0; | ||
background-color: palevioletred; | ||
color: white; | ||
} | ||
|
||
.filler { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: 100%; | ||
height: 100vh; | ||
background-color: palevioletred; | ||
color: #ffffff; | ||
text-align: center; | ||
font-family: "Verdana", serif; | ||
} | ||
|
||
.animation-container { | ||
width: 100%; | ||
height: 100%; | ||
background-color: #ADFF9E; | ||
text-align: center; | ||
} | ||
</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,52 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Show-and-click example</title> | ||
<script type="module" src="../../dist/lottie-interactive.js"></script> | ||
</head> | ||
|
||
<body> | ||
<h1> | ||
Interaction: 'show-and-morph-lock' | ||
</h1> | ||
<div class="filler"> | ||
<h1>Scroll down!</h1> | ||
</div> | ||
<h1>Interaction: 'show-and-morph-lock'</h1> | ||
<div class="animation-container"> | ||
<lottie-interactive path="../animations/sun-moon.json" | ||
interaction="show-and-morph-lock"> | ||
</lottie-interactive> | ||
</div> | ||
</body> | ||
</html> | ||
|
||
<style> | ||
h1 { | ||
text-align: center; | ||
font-family: 'Verdana', serif; | ||
margin: 0; | ||
background-color: palevioletred; | ||
color: white; | ||
} | ||
|
||
.filler { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: 100%; | ||
height: 100vh; | ||
background-color: palevioletred; | ||
color: #ffffff; | ||
text-align: center; | ||
font-family: "Verdana", serif; | ||
} | ||
|
||
.animation-container { | ||
width: 100%; | ||
height: 100%; | ||
background-color: #ADFF9E; | ||
text-align: center; | ||
} | ||
</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,52 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Show-and-click example</title> | ||
<script type="module" src="../../dist/lottie-interactive.js"></script> | ||
</head> | ||
|
||
<body> | ||
<h1> | ||
Interaction: 'show-and-morph' | ||
</h1> | ||
<div class="filler"> | ||
<h1>Scroll down!</h1> | ||
</div> | ||
<h1>Interaction: 'show-and-morph'</h1> | ||
<div class="animation-container"> | ||
<lottie-interactive path="../animations/lottie-interactive.json" | ||
interaction="show-and-morph"> | ||
</lottie-interactive> | ||
</div> | ||
</body> | ||
</html> | ||
|
||
<style> | ||
h1 { | ||
text-align: center; | ||
font-family: 'Verdana', serif; | ||
margin: 0; | ||
background-color: palevioletred; | ||
color: white; | ||
} | ||
|
||
.filler { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: 100%; | ||
height: 100vh; | ||
background-color: palevioletred; | ||
color: #ffffff; | ||
text-align: center; | ||
font-family: "Verdana", serif; | ||
} | ||
|
||
.animation-container { | ||
width: 100%; | ||
height: 100%; | ||
background-color: #ADFF9E; | ||
text-align: center; | ||
} | ||
</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,52 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Show-and-click example</title> | ||
<script type="module" src="../../dist/lottie-interactive.js"></script> | ||
</head> | ||
|
||
<body> | ||
<h1> | ||
Interaction: 'show-and-switch' | ||
</h1> | ||
<div class="filler"> | ||
<h1>Scroll down!</h1> | ||
</div> | ||
<h1>Interaction: 'show-and-switch'</h1> | ||
<div class="animation-container"> | ||
<lottie-interactive path="../animations/lottie-interactive.json" | ||
interaction="show-and-switch"> | ||
</lottie-interactive> | ||
</div> | ||
</body> | ||
</html> | ||
|
||
<style> | ||
h1 { | ||
text-align: center; | ||
font-family: 'Verdana', serif; | ||
margin: 0; | ||
background-color: palevioletred; | ||
color: white; | ||
} | ||
|
||
.filler { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: 100%; | ||
height: 100vh; | ||
background-color: palevioletred; | ||
color: #ffffff; | ||
text-align: center; | ||
font-family: "Verdana", serif; | ||
} | ||
|
||
.animation-container { | ||
width: 100%; | ||
height: 100%; | ||
background-color: #ADFF9E; | ||
text-align: center; | ||
} | ||
</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
File renamed without changes.
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
Oops, something went wrong.