-
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.
Added dynamic stroke color and width attribute as well as attribute c…
…hange detection
- Loading branch information
1 parent
1e8aaaf
commit cc1da4d
Showing
7 changed files
with
157 additions
and
12 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
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
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,45 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Stroke color example</title> | ||
<script type="module" src="../../bin/lottie-interactive.js"></script> | ||
</head> | ||
|
||
<body> | ||
<h1> | ||
Stroke color attribute in element | ||
</h1> | ||
<div style="text-align: center"> | ||
<h2> | ||
Original | ||
</h2> | ||
<lottie-interactive path="../animations/rainbow.json" | ||
s-width="10" | ||
loop | ||
stroke | ||
autoplay> | ||
</lottie-interactive> | ||
|
||
<h2> | ||
Stroke color #44feee | ||
</h2> | ||
<lottie-interactive path="../animations/rainbow.json" | ||
s-width="10" | ||
s-color="#44feee" | ||
loop | ||
autoplay> | ||
</lottie-interactive> | ||
<div> | ||
Rainbow courtesy of @lack_robin, found here: https://lottiefiles.com/38726-stagger-rainbow | ||
</div> | ||
</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
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