Created
April 5, 2020 13:36
-
-
Save 1997roylee/600b17467f7b292c5a809f4a01131060 to your computer and use it in GitHub Desktop.
ipadpro.css
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
*{ | |
box-sizing: border-box; | |
font-family: 'Ubuntu', sans-serif; | |
} | |
img{ | |
width: 100%; | |
} | |
h2{ | |
font-size: 28px; | |
line-height: 1.14286; | |
font-weight: 400; | |
letter-spacing: .007em; | |
padding-bottom: 16px; | |
} | |
h3{ | |
font-size: 96px; | |
line-height: 1.04167; | |
font-weight: 400; | |
margin-top: 16px; | |
} | |
.animation-section{ | |
height: 500vh; | |
} | |
.sticky{ | |
position: sticky; | |
z-index: 2; | |
top: 0px; | |
width: 100%; | |
height: 100vh; | |
text-align: center; | |
} | |
.sticky-content{ | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
z-index: 100; | |
min-width: 1280px; | |
color: white; | |
transform: translateX(-50%) translateY(-50%); | |
transition: all .32s ease; | |
will-change: opacity; | |
} | |
.sticky-content.fade-out{ | |
opacity: 0; | |
} | |
.row{ | |
display: -webkit-box; | |
display: -ms-flexbox; | |
display: flex; | |
-ms-flex-wrap: wrap; | |
flex-wrap: wrap; | |
-webkit-box-orient: horizontal; | |
-webkit-box-direction: normal; | |
-ms-flex-direction: row; | |
flex-direction: row; | |
width: 100%; | |
justify-content: center; | |
} | |
.ipad-pro{ | |
position: absolute; | |
transform-origin: top center; | |
top: 0px; | |
} | |
.ipad-pro-wallpaper { | |
position: relative; | |
} | |
.ipad-pro-frame { | |
width: 519px; | |
position: relative; | |
height: 675px; | |
padding: 22px; | |
} | |
.ipad-pro-frame:before { | |
content: ''; | |
background-image: url('./assets/images/display_hardware_zoomed__cg6k2vj6fa6a_large.png'); | |
position: absolute; | |
top: 0px; | |
left: 0px; | |
z-index: 10; | |
right: 0px; | |
background-size: cover; | |
background-repeat: no-repeat; | |
bottom: 0px; | |
} | |
.ipad-pro-screen-ui { | |
z-index:10; | |
position: absolute; | |
top: 0px; | |
left: 0px; | |
bottom: 0px; | |
right: 0px; | |
margin: 22px; | |
} | |
.ipad-pro-unlock { | |
background-image: url('./display_sprite_unlock_zoomed__rz3nyrpf7fmi_large.png'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment