JSFiddle - React, Tailwind, and code Playground
by davidxmartins
HTML
<style>
/*GENERAL*/
html, body {
margin: 0;
padding: 0;
}
* {
box-sizing: border-box;
}
/*SPECIFIC*/
#shopify-section-16444270146f55ee50 .page-width {
width: 100vw;
max-width:100%;
margin: 0;
padding:0;
}
#hero {
width: 100vw;
height: 100vh;
display: table;
}
.hero-left {
width: 58%;
height: 100%;
display: table-cell;
vertical-align: middle;
box-sizing: border-box;
padding: 1vh 2vw;
}
.hero-right {
width: 42%;
height: 100%;
display: table-cell;
vertical-align: middle;
}
/*
====================
TEXT
====================
*/
#hero h1 {
font-family: Montserrat;
font-weight: 800 !important;
font-size: 5.1vw;
color: black;
line-height: 0.9;
letter-spacing: -1px;
text-transform: uppercase;
text-align: right;
margin: 0;
padding: 0 0 0.3em 0;
}
#hero h1 span {
color: #a8a7b2;
}
#hero h2 {
font-family: Montserrat;
font-weight: 400;
font-size: clamp(18px, 1.3vw, 1.3vw);
color: black;
line-height: 1.3;
text-align: right;
text-transform: none;
margin: 0;
padding: 0;
}
/*
====================
IMAGES
====================
*/
.fadein {
width: 40vw;
aspect-ratio: 1 / 1;
max-width: 1000px;
background: url(https://cdn.shopify.com/s/files/1/0618/8846/3067/products/[email protected]?v=1646131754);
background-repeat: no-repeat;
background-size: contain;
}
.fadein img {
position:absolute;
width: 40vw;
max-width: 1000px;
height: auto;
-webkit-animation-name: fade;
-webkit-animation-iteration-count: infinite;
-webkit-animation-duration: 6s;
animation-name: fade;
animation-iteration-count: infinite;
animation-duration: 6s;
}
@-webkit-keyframes fade {
0% {opacity: 0;}
20% {opacity: 1;}
33% {opacity: 1;}
53% {opacity: 0;}
100% {opacity: 0;}
}
@keyframes fade {
0% {opacity: 0;}
20% {opacity: 1;}
33% {opacity: 1;}
53% {opacity: 0;}
100% {opacity: 0;}
}
#f1 {
...