Skip to content

Instantly share code, notes, and snippets.

View alykat's full-sized avatar

Alyson Hurt alykat

View GitHub Profile
function setup_css_animations() {
var prefixes = [ '-webkit-', '-moz-', '-o-', '' ];
var keyframes = '';
var filmstrip_steps = 25;
...
for (var i = 0; i < prefixes.length; i++) {
...
var filmstrip = '';
for (var f = 0; f < filmstrip_steps; f++) {
var current_pct = f * (100/filmstrip_steps);
.filmstrip-outer-wrapper {
width: 100%;
margin-bottom: 1em;
.filmstrip-wrapper {
width: 720px;
height: 528px;
}
.filmstrip {
@alykat
alykat / filmstrip-markup.html
Created January 8, 2014 15:55
Filmstrip blog post: Sample HTML
<div class="filmstrip-outer-wrapper">
<div class="filmstrip-wrapper">
<div class="filmstrip animated"></div>
</div>
</div>