Skip to content

Instantly share code, notes, and snippets.

View IgnetStudio's full-sized avatar
🚀

Ignet IgnetStudio

🚀
View GitHub Profile
@IgnetStudio
IgnetStudio / dabblet.css
Created June 18, 2015 14:51 — forked from LeaVerou/dabblet.css
Loading animation like the one seen on http://www.freeger.com/projects/contextad/ with CSS
/**
* Loading animation like the one seen on http://www.freeger.com/projects/contextad/ with CSS
* Caveat: Not DRY. The content needs to be repeated in a data- attribute (or directly in the CSS).
*/
body {
background: #ccc51c;
min-height: 100%;
}
@IgnetStudio
IgnetStudio / CSS Transform Origin Example.markdown
Created June 18, 2015 08:34
CSS Transform Origin Example
@IgnetStudio
IgnetStudio / 10 stylish hover effects with less.markdown
Created June 18, 2015 08:08
10 stylish hover effects with less
@IgnetStudio
IgnetStudio / Super-Easy Iris Wipe in CSS3.markdown
Created June 18, 2015 08:06
Super-Easy Iris Wipe in CSS3
@IgnetStudio
IgnetStudio / HTML5 Video Before-and-After Comparison Slider.markdown
Created June 17, 2015 22:19
HTML5 Video Before-and-After Comparison Slider

3D Paper button effects

I made this demo to try out and illustrate some of the subtle button effects you can create just using box-shadow and borders on pseudo–elements.

Inspired by the work I saw a while back over on Beemuse (http://beemuse.com/paper) and so this is a heavily tweaked more dynamic version of those effects.

Also see Nicolas Gallaghers previous post on effects like this: http://nicolasgallagher.com/css-drop-shadows-without-images/

Tested in latest Chrome and Firefox, but no reason it shouldn't work in all latest browsers.