Inspired by the github universe alert: https://s3-us-west-2.amazonaws.com/s.cdpn.io/173256/github-universe.png
Inspired by the github universe alert: https://s3-us-west-2.amazonaws.com/s.cdpn.io/173256/github-universe.png
This file contains 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
<nav>Global navigation</nav> | |
<header> | |
<h1>Fun with background gradients</h1> | |
<p>Just a bit of fun while wondering about using simple and subtle CSS gradients for backgrounds...</p> | |
</header> | |
<main> | |
<ul class="cards"> | |
<li class="card -red"> | |
<div class="card--image">✤</div><h2>Red</h2> | |
<p>Red is the color at the long wavelength end of the visible spectrum of light, next to orange and opposite violet.</p> |
This is a simple carousel react component, that utilizes CSS transformations to create this 3D effect.
The cards are rotated, translated and blurred based on their distance in the list from the active card. Additionally, the color of the card is changing to be darker while maintaining the same hue using hsl().
This file contains 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
<!-- Explanation in JS tab --> | |
<!-- The two texts --> | |
<div id="container"> | |
<span id="text1"></span> | |
<span id="text2"></span> | |
</div> | |
<!-- The SVG filter used to create the merging effect --> | |
<svg id="filters"> |
This file contains 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="snow"></div> | |
<div class="snow"></div> | |
<div class="snow"></div> | |
<div class="snow"></div> | |
<div class="snow"></div> | |
<div class="snow"></div> | |
<div class="snow"></div> | |
<div class="snow"></div> | |
<div class="snow"></div> | |
<div class="snow"></div> |
OlderNewer