<style> .container { position: relative; display: flex; margin: 0; align-items: center; justify-content: center; font-family: ‘Nunito’, sans-serif; background: rgba(245, 247, 250, 1); } #start { position: absolute; color: rgba(245, 247, 250, 1); font-size: 1.5rem; background: rgba(135, 25, 224, 1); border-radius: 4px; border: none; padding: 0.5rem 1rem; cursor: pointer; transition: opacity 1s, background 0.3s, transform 0.1s; } #start:hover { background: rgba(207, 17, 36, 1); } #start:active { transform: scale(0.95); } #canvas { background: black; transition: opacity 5s; opacity: 1; }
#notification { position: absolute; color: rgba(135, 25, 224, 1); font-size: 2rem; animation: pulse 2s infinite; transition: opacity 5s; max-width: 500px; text-align: center; } .is-hidden { opacity: 0 !important; pointer-events: none; } @keyframes pulse 0% { text-shadow: } 90% { text-shadow: } 100% { text-shadow: } } </style>
{
f o t o l a s ’ t ! a e h g a T m i e n o r o f e d co
0 0 0 rgba(135, 25, 224, 1), 0 0 0 rgba(135, 25, 224, 1);
0 0 2em rgba(135, 25, 224, 0), 0 0 1em rgba(135, 25, 224, 0);
0 0 0 rgba(135, 25, 224, 0), 0 0 0 rgba(135, 25, 224, 0);
<canvas id=”canvas” class=”is-hidden”></canvas> <div id=”notification” class=”is-hidden”>Sampling noise for art generation</div> <button id=”start”>Generate Art</button>
@trentmwillis | #NEJSConf