Technique explained in the related blog post
A Pen by Dudley Storey on CodePen.
Technique explained in the related blog post
A Pen by Dudley Storey on CodePen.
<div class="btn from-top">From Top</div> | |
<div class="btn from-left">From Left</div> | |
<div class="btn from-right">From Right</div> | |
<div class="btn from-middle">From Middle</div> | |
<div class="btn from-bottom">From Bottom</div> |
/** | |
* Raindrop fragment shader, being used by PIXI.js in the EffectCanvas object | |
* {{uniforms: {time: {type: string, value: number}, iResolution: {type: string, value: [*]}}, fragment: string}} | |
*/ | |
const shaderData = { | |
uniforms: { | |
iResolution: { | |
type: 'v2', | |
value: [ | |
window.innerWidth, |
<!-- | |
Follow me on | |
Dribbble: https://dribbble.com/supahfunk | |
Twitter: https://twitter.com/supahfunk | |
Codepen: https://codepen.io/supah/ | |
--> | |
<div class="split-slideshow"> | |
<div class="slideshow"> |
Based on dribbble shot https://dribbble.com/shots/2097042-Widget-Weather by kylor
A Pen by Josh Bader on CodePen.
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,400,300,600,700,800" rel="stylesheet" type="text/css"> | |
<div id="js-car1" class="car car--1 c-green-g"></div> | |
<div id="js-car2" class="car car--2 c-green-g"></div> | |
<div id="js-fast" class="c-green-c-g text text--fast"> | |
<div class="text__bit text__bit--1"> | |
<div id="js-bit-inner" class="text__bit__inner"><span id="js-span">f</span></div> | |
</div> | |
<div class="text__bit text__bit--2"> | |
<div id="js-bit-inner" class="text__bit__inner"><span id="js-span">a</span></div> |
<div class="container"> | |
<h1>Vegas <strong>2</strong></h1> | |
<h2>Background slideshow</h2> | |
<p>Ken Burns effect</p> | |
</div> | |
<a href="http://vegas.jaysalvat.com"> | |
Download VEGAS | |
</a> |
<h1><small>Fullscreen</small> Ken Burns effect <small>without javascript</small></h1> | |
<!-- You can add more ".slideshow-image" elements, but remember to update the "$items" variable on SCSS --> | |
<div class="slideshow"> | |
<div class="slideshow-image" style="background-image: url('https://source.unsplash.com/category/nature/1600x1400')"></div> | |
<div class="slideshow-image" style="background-image: url('https://source.unsplash.com/category/buildings/1600x1400')"></div> | |
<div class="slideshow-image" style="background-image: url('https://source.unsplash.com/category/food/1600x1400')"></div> | |
<div class="slideshow-image" style="background-image: url('https://source.unsplash.com/category/technology/1600x1400')"></div> | |
</div> |
<h1><small>Fullscreen</small> Ken Burns effect <small>without javascript</small></h1> | |
<!-- You can add more ".slideshow-image" elements, but remember to update the "$items" variable on SCSS --> | |
<div class="slideshow"> | |
<div class="slideshow-image" style="background-image: url('https://source.unsplash.com/category/nature/1600x1400')"></div> | |
<div class="slideshow-image" style="background-image: url('https://source.unsplash.com/category/buildings/1600x1400')"></div> | |
<div class="slideshow-image" style="background-image: url('https://source.unsplash.com/category/food/1600x1400')"></div> | |
<div class="slideshow-image" style="background-image: url('https://source.unsplash.com/category/technology/1600x1400')"></div> | |
</div> |