A Pen by Beibit Sakhanov on CodePen.
Created
September 25, 2019 00:48
-
-
Save bsakhanov/19fc9dce9c7dfdf8da17f249aeb391b0 to your computer and use it in GitHub Desktop.
Background Pattern
This file contains hidden or 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
<css-doodle> | |
:doodle { | |
@grid: 15 / 100vmax; | |
background: #fff; | |
cursor: pointer; | |
} | |
:doodle(:hover) { --s: 1 ; } | |
:after { | |
content: @pick(a,A); | |
font-size: 4vmax; | |
color: #000; | |
transform: scale(@rand(.2, .9)); | |
} | |
transition: .5s cubic-bezier(.175, .885, .32, 1.275); | |
transition-delay: @rand(650ms); | |
transform: translateY(calc(var(--s) * 100%)) rotate(calc(var(--s) * 360deg)); | |
</css-doodle> |
This file contains hidden or 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 { | |
font: 900 100px/0.65 system-ui; | |
margin: 0; | |
overflow: hidden; | |
width: 110%; | |
} | |
span { | |
display: inline-block; | |
text-indent: -2rem; | |
position: relative; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment