gradientsmotherfucker.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
  6. <title>What’s the best way to appease Samuel L. Jackson’s design-lust?</title>
  7. <style type="text/css">
  8. html, body {
  9. padding:0;
  10. margin:0;
  11. width:100%;
  12. height:100%;
  13. background-attachment:fixed;
  14. color:#fff;
  15. font-family:sans-serif;
  16. text-align:center;
  17. }
  18. a {color:#eee;}
  19. #top {padding-top:10em;}
  20. #bottom {
  21. position:fixed;
  22. right:0;
  23. bottom:0;
  24. left:0;
  25. }
  26. #bottom > img {
  27. display:block;
  28. margin:auto;
  29. }
  30. .hidden {display:none;}
  31. </style>
  32. </head>
  33. <body data-0="background-image:linear-gradient(0deg, hsl(0, 100%, 50%), hsl(40, 50%, 50%));" data-5000="background-image:linear-gradient(3600deg, hsl(360, 100%, 50%), hsl(400, 100%, 50%));">
  34. <div id="skrollr-body">
  35. <div id="top">
  36. <h1>What’s the best way to appease Samuel L. Jackson’s design-lust?</h1>
  37. <p>Scroll to find out</p>
  38. <p>↓</p>
  39. </div>
  40. </div>
  41. <div id="bottom" data-500-end="opacity:0;" data-end="opacity:1;">
  42. <h1>Rotating gradients, motherfucker</h1>
  43. <p>Inspired by: <a href="http://gradientsmotherfucker.com/">http://gradientsmotherfucker.com/</a></p>
  44. <p>Created with: <a href="https://github.com/Prinzhorn/skrollr">skrollr</a></p>
  45. <img src="images/slj.png" />
  46. </div>
  47. <script type="text/javascript" src="../dist/skrollr.min.js"></script>
  48. <script type="text/javascript">
  49. skrollr.init();
  50. </script>
  51. </body>
  52. </html>