Skip to content

Instantly share code, notes, and snippets.

Changing Background Color on Scroll

Using Jquery to change the background color of the whole page based on position on page.

A Pen by Jack Harner on CodePen.

License.

Sequence.js - Basic Parallax Theme

A basic parallax theme made with Sequence.js.

Sequence.js is a responsive CSS animation framework for creating unique sliders, presentations, banners, and other step-based applications.

Using the classes "seq-in" and "seq-out", you can control the transitions of each step as it becomes active.

Sequence.js supports responsive design. Check this demo out at various widths to see the layout change.

Shattering Text Animation

GSAP text animation. SVG path shattering. Slow motion on hover.

A Pen by ARS on CodePen.

License.

Better Screen rotation

Something I think is an improvement over how iOS does screen orientation changes for wallpapers, for instance. No flashes of black letterboxing.

Note that background-attachment property with transform: rotate(); doesn't quite work in Chrome at least.

Photo by Chris Burkard.

A Pen by Bennett Feely on CodePen.

Apple TV Macbeth Poster Animation

Source of inspiration by Konstantine Trundayev - https://dribbble.com/shots/2245238-Apple-TV-Macbeth-poster

Not working in IE 11-. Shiny effect really sucks compared to original gif, I killed more than 1 hour on gradients and box-shadows, all of them looks not good enough :(

"360 degree rotation of already rotatated element" it is kinda tricky part. It's easy to imagine in your brain how this animation should work, but actually it's not that straightforward. I tried keyframes with steps like rotateX(10deg)>rotateY(10deg)>rotateX(-10deg)>rotateY(-10deg) but animation was absolutely different, because it wasn't actually rotating around Z axis. Then I tried double 360deg-Zrotation (normal for inner element and reversed for parent, to keep element not actually rotated) but for some reason any rotation for second block above 179deg was not working. So I ended up doing this hacky part with #{percentage(179/360)} {rotate: 179deg} > 50% {rotate: 18

@CodeMyUI
CodeMyUI / Name Tag Signup.markdown
Last active September 21, 2015 04:04 — forked from anonymous/Name Tag Signup.markdown
Name Tag Signup