A loop version of my Neutrons experiment (http://ayamflow.fr/labs/canvas/Neutrons/) made for the awwward contest
This file contains hidden or 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
/** | |
* RGB plane for R=255 | |
*/ |
This file contains hidden or 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
/** | |
* Blinking animations | |
*/ | |
@keyframes blink-smooth { to { opacity: 0 } } | |
@keyframes blink { 50% { opacity: 0 } } | |
p { | |
animation: blink-smooth .3s 10 alternate; | |
background: yellow; |
This file contains hidden or 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
/** | |
* Bouncy bouncy | |
*/ | |
@keyframes foo { | |
60%, 80%, to { margin-top: 400px; } | |
70% { margin-top: 330px; animation-timing-function: ease-in; } | |
90% { margin-top: 370px; animation-timing-function: ease-in; } | |
} |
This file contains hidden or 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
/** | |
* animation-fill-mode with non-integer animation-iteration-count | |
*/ | |
@keyframes foo { to { background: black }} | |
body { | |
animation: foo 3s .4 both linear; | |
} |
This file contains hidden or 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
/** | |
* Border clipping with border-image | |
* Support: Chrome, Opera, Safari, Firefox. Cannot get it to work in IE11, even though it supports border-image… | |
* Note: In CSS Backgrounds & Borders 4, there will be a property to clip borders (likely called border-clip). Until then though… | |
* Author: Lea Verou | |
*/ | |
div { | |
border-top: .2em solid; /* Sets the thickness, also serves as fallback when no border-image */ | |
border-image: 100% 0 0 linear-gradient(90deg, currentColor 5em, transparent 0); /* 5em is the width of clipped border */ |
This file contains hidden or 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
/** | |
* (C)Leanest CSS spinner ever | |
*/ | |
@keyframes spin { | |
to { transform: rotate(1turn); } | |
} | |
.progress { | |
position: relative; |
CSSPlugin + BezierPlugin fun powered by:
http://www.greensock.com/gsap-js/
BezierPlugin Docs: http://api.greensock.com/js/com/greensock/plugins/BezierPlugin.html
CSSPlugin + BezierPlugin fun powered by:
http://www.greensock.com/gsap-js/
BezierPlugin Docs: http://api.greensock.com/js/com/greensock/plugins/BezierPlugin.html
This file contains hidden or 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="box red"></div> | |
<div class="box blue"></div> | |
<div class="box red"></div> | |
<div class="box blue"></div> | |
<div class="box red"></div> | |
<div class="box blue"></div> | |
<div class="box red"></div> | |
<div class="box blue"></div> | |