<article class="wrapper">
<h2 class="title">Pattern Animation</h2>
</article>
@import url('https://fonts.googleapis.com/css?family=Lobster&display=swap') repeat scroll 0 0 rgba(0, 0, 0 , 0);
body {
background: #fff;
}
.title {
font-size: 2.5rem;
font-family: 'Lobster', cursive;
}
.wrapper {
animation: scroll 70s linear infinite;
background: url("https://images.unsplash.com/photo-1465146633011-14f8e0781093?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=3450&q=80"), #111111;
color: #eee;
height: 100vh;
min-width: 360px;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
perspective: 1000px;
perspective-origin: 50% 50%;
}
@keyframes scroll {
100%{
background-position:0px -3000px;
}
}
@media (prefers-reduced-motion) {
.wrapper {
animation: scroll 200s linear infinite;
}
}
@media (min-width: 670px) {
.title {
font-size: 5rem;
}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.