useMatcher
identifies an animated element throughout addition and removal from the DOM, not unlikekey
in React —probably needs a better name!- zombie elements are elements that will be removed after their exist animation plays. Implementation
use:*
is a custom directive that can attach multiple directives (effects, signals) to a single element after render, before addition to DOM implementation
Want to learn more about web animation and motion design? You came to the right place!
You should also check out my slides and articles at RachelNabors.com. There's great stuff in there!
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
// All the little mixins that will go into one BIG mixin. | |
// Hey, might need them! | |
@mixin set-dimensions($width, $height, $parent-width) { | |
@include background-size(100% auto); | |
width: percentage($width/$parent-width); | |
padding-top: percentage($height/$parent-width); | |
height: 0; | |
} |
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
if (documents.length > 0) | |
{ | |
var docRef = activeDocument; | |
var activeLayer = docRef.activeLayer; | |
numLayers = docRef.artLayers.length; | |
var rows = numLayers; | |
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
<h1>Hello!</h1> |
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
<div class="foreground"></div> | |
<div class="midground"> | |
<div class="tuna"></div> | |
</div> | |
<div class="background"> | |
</div> |
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
<div id="tuna"></div> |
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
<div class="tuna"></div> | |
<p>Awwww yeah...</p> |
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
@media screen { | |
/* Contain floats: h5bp.com/q */ | |
.clearfix:before, .clearfix:after { content: ""; display: table; } | |
.clearfix:after { clear: both; } | |
.clearfix { *zoom: 1; } | |
/* For image replacement */ | |
.ir { | |
text-indent: 100%; | |
white-space: nowrap; |
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
*** | |
Format: | |
*** | |
Comic | |
panel (scene) | |
-description* | |
person/thing/offscreen | |
-dialog/soundeffect | |
caption/narration |