9
Thank You 800 Followers - Interactive Perspective Text
source link: https://codepen.io/josetxu/pen/VwzNQgg
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
HTML (Pug)
HTML (Pug)
0 unsaved changes
xxxxxxxxxx
- for (c = 0; c < 81; c++)
.cam
.container
.text.thanks.viewpoint.men
- for (t = 0; t < 20; t++)
div Thank You
.numbers.viewpoint
- for (n = 0; n < 15; n++)
.number
.text.followers.viewpoint
- for (f = 0; f < 20; f++)
div Followers
CSS (SCSS)
CSS (SCSS)
@import url('https://fonts.googleapis.com/css2?family=Days+One&family=Gluten&display=swap');
* {
box-sizing: border-box;
transform-style: preserve-3d;
}
body {
margin: 0;
width: 100vw;
height: 100vh;
overflow: hidden;
font-family: 'Gluten', Arial, Helvetica, serif;
background: radial-gradient(ellipse at 50% 50%, #a71d31, #000000);
background-color: #59101a;
&:before, &:after {
content: "hover to change perspective";
position: absolute;
width: 100%;
xxxxxxxxxx
/*** No Javascript - Pure CSS ***/
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK