Skip to content

Instantly share code, notes, and snippets.

@maxw3st
maxw3st / dabblet.css
Created July 15, 2013 03:57 — forked from LeaVerou/dabblet.css
CSS Puzzle: Reverse the z-order of the <li>s without setting a separate z-index on each one in a way that works in IE9 and up
/**
* CSS Puzzle: Reverse the z-order of the <li>s without setting a separate z-index on each one in a way that works in IE9 and up
I used flex box to solve this. "flex-direction:column-reverse; " reverses the stacking order of the li elements.
*/
div {
display: inline-flex;
flex-direction: column;
padding: 1em 2em 1em 1em;
@maxw3st
maxw3st / dabblet.css
Last active April 1, 2018 15:23 — forked from LeaVerou/dabblet.css
Untitled
/* Pounding heart animation */
@keyframes pound {
to { transform: scale(1.4); }
}
.heart {
display: inline-block;
font-size: 150px;
color: #e00;
@maxw3st
maxw3st / dabblet.css
Created July 20, 2013 23:23 — 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).
* Another good idea from @LeaVerou.
*/
body {
background: #ccc51c;
min-height: 100%;
}
@maxw3st
maxw3st / dabblet.css
Created July 16, 2013 00:06
body {perspective: 10000px;}
**
* CSS Puzzle: Reverse the z-order of the <li>s without setting a separate z-index on each one in a way that works in IE9 and up
answer via: @meyerweb. but doesn't work in IE9. the solution below will, but it's brute force and not DRY.
*/
/* body {perspective: 10000px;} */
ul {transform: rotateY(1deg); transform-origin: 0 0; perspective: 10000px; transform-style: preserve-3d;}
li {
list-style: none;
/*display: inline-block;*/
padding: 1em 1em 1em 2em;
@maxw3st
maxw3st / dabblet.css
Created July 15, 2013 23:51
CSS Puzzle: Reverse the z-order of the <li>s without setting a separate z-index on each one in a way that works in IE9 and up
/**
* CSS Puzzle: Reverse the z-order of the <li>s without setting a separate z-index on each one in a way that works in IE9 and up
answer via: @meyerweb
*/
body {perspective: 10000px;}
ul {transform: rotateY(1deg); transform-origin: 0 0; perspective: 10000px; transform-style: preserve-3d;}
li {
list-style: none;
display: inline-block;
padding: 1em 2em 1em 2em;
@maxw3st
maxw3st / dabblet.css
Created July 15, 2013 04:58 — forked from anonymous/dabblet.css
CSS Puzzle: Reverse the z-order of the <li>s without setting a separate z-index on each one in a way that works in IE9 and up
/**
* CSS Puzzle: Reverse the z-order of the <li>s without setting a separate z-index on each one in a way that works in IE9 and up
answer via: @meyerweb
*/
body {perspective: 10000px;}
ul {transform: rotateY(1deg); transform-origin: 0 0; perspective: 10000px; transform-style: preserve-3d;}
li {
list-style: none;
display: inline-block;
padding: 1em 2em 1em 2em;
@maxw3st
maxw3st / dabblet.css
Created July 15, 2013 04:31
CSS Puzzle: Reverse the z-order of the <li>s without setting a separate z-index on each one in a way that works in IE9 and up
/**
* CSS Puzzle: Reverse the z-order of the <li>s without setting a separate z-index on each one in a way that works in IE9 and up
I used flex box to solve this. "flex-direction:column-reverse; " reverses the stacking order of the li elements.
*/
div {
display: inline-flex;
-moz-flex-direction: column;
-webkit-flex-direction: column;
@maxw3st
maxw3st / dabblet.css
Created July 12, 2013 16:59 — forked from LeaVerou/dabblet.css
Attempt for Chrome-style progress-indicator with SVG and CSS animations
/**
* Attempt for Chrome-style progress-indicator with SVG and CSS animations
*/
@keyframes spin {
to {
stroke-dashoffset: -148;
}
}
@maxw3st
maxw3st / index.html
Created June 28, 2013 04:53
A CodePen by maxw3st. Sliced Image Slider - A modified version of the tutorial slider set (of 4) by Mary Lou @ Codrops: http://tympanus.net/codrops/2012/01/17/sliding-image-panels-with-css3/
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Sliced Image Slider Template</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="CSS3 Sliding Image Panels for COT Index Charts" />
<meta name="keywords" content="sliding, background-image, css3, panel, images, slider, fx majors, cot index charts" />
<meta name="author" content="maxw3st via Codrops & Mary Lou" />
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Merriweather+Sans">
@maxw3st
maxw3st / slider.html
Last active December 19, 2015 02:19
A CodePen by maxw3st. Sliced Image Slider - A modified version of the tutorial slider set (of 4) by Mary Lou @ Codrops: http://tympanus.net/codrops/2012/01/17/sliding-image-panels-with-css3/
<!-- Kudos to Mary Lou on codrops: http://tympanus.net/codrops/2012/01/17/sliding-image-panels-with-css3/ for coming up with this.
In order to retask her slider the banner text and button positioning were removed or altered to produce a different look and feel.
You are encouraged to visit her tutorial and demo on Codrops for a view of the original 4 versions of this slider. --->
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>Sliced Image Slider Template</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="CSS3 Sliding Image Panels for COT Index Charts" />