Last active
September 26, 2018 00:13
-
-
Save CodeMyUI/08e7ef687d4d6c4e58542a3b441d3e97 to your computer and use it in GitHub Desktop.
Sky - SVG 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
<h1 contenteditable> Cause you're a sky full of stars</h1> | |
<svg> | |
<defs> | |
<filter id="flyOn"> | |
<feTurbulence id="turbulence" baseFrequency="0.02" numOctaves="3" result="noise" seed="3"/> | |
<feDisplacementMap in="SourceGraphic" in2="noise" scale="15" /> | |
</filter> | |
</defs> | |
</svg> |
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
// Insipired by Cris Coyier (Thanks!) | |
// https://codepen.io/chriscoyier/pen/eBRRLe |
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
body, | |
html { | |
height: 100vh; | |
} | |
body { | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
filter: url("#flyOn"); | |
animation: wavemover 10s infinite alternate linear; | |
font-family: 'Rubik Mono One', sans-serif; | |
background: | |
linear-gradient(#0d4fa7 0%, #3072cc 60%, #6facff 100%); | |
} | |
h1 { | |
color: #fff; | |
font-size: 3.6em; | |
max-width: 7ch; | |
opacity: .6; | |
margin-left: 20%; | |
} | |
@keyframes wavemover { | |
100% { | |
padding-left: 300px; | |
transform: translateX(-100px); | |
} | |
} |
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
<link href="https://fonts.googleapis.com/css?family=Rubik+Mono+One" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment