Skip to content

Instantly share code, notes, and snippets.

@CodeMyUI
Last active September 26, 2018 00:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CodeMyUI/08e7ef687d4d6c4e58542a3b441d3e97 to your computer and use it in GitHub Desktop.
Save CodeMyUI/08e7ef687d4d6c4e58542a3b441d3e97 to your computer and use it in GitHub Desktop.
Sky - SVG filters
<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>
// Insipired by Cris Coyier (Thanks!)
// https://codepen.io/chriscoyier/pen/eBRRLe
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);
}
}
<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