Pure css Parallax header
How do I make an pure css parallax header?
Parallax scroll effect like Twitter. Pure css, javacsript free. Based on http://codepen.io/keithclark/pen/JycFw?editors=010. What is a pure css parallax header? How do you make a pure css parallax header? This script and codes were developed by Keisuke Takahashi on 19 November 2022, Saturday.
Pure css Parallax header - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Pure css Parallax header</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <header> <h1>Parallax header</h1> <p>Parallax scroll effect like Twitter. Pure css, javacsript free.</p>
</header>
<main> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sequi, tempora voluptatum porro. Harum odio, sapiente dicta, eum quidem porro atque quisquam impedit officia ullam minus, laudantium vel eaque doloribus rem.</p> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sequi, tempora voluptatum porro. Harum odio, sapiente dicta, eum quidem porro atque quisquam impedit officia ullam minus, laudantium vel eaque doloribus rem.</p>
</main>
</body>
</html>
Pure css Parallax header - Script Codes CSS Codes
html { height: 100%; overflow: hidden;
}
body { color: #fff; margin:0; padding:0; -webkit-perspective: 1px; perspective: 1px; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; height: 100%; overflow-y: scroll; overflow-x: hidden;
}
header { box-sizing: border-box; min-height: 40vw; padding: 30vw 0 5vw; position: relative; -webkit-transform-style: inherit; transform-style: inherit; width: 100vw;
}
header, header:before { background: 50% 50% / cover;
}
header::before { bottom: 0; content: ""; left: 0; position: absolute; right: 0; top: 0; display: block; background-color: #8a8; background-image: url(http://ksk-soft.com/css_labo/dimg/orengeFlower.jpg); background-size: cover; -webkit-transform-origin: center center 0; -webkit-transform: translateZ(-1px) scale(2); transform-origin: center center 0; transform: translateZ(-1px) scale(2); z-index: -1; min-height: 100vh;
}
header * { font-weight: normal; letter-spacing: 0.2em; text-align: center; margin: 0; padding: 1em 0;
}
header p { background-color: hsla(0, 0%, 100%,0.1);
}
main { background-color: hsl(60, 10%, 10%); line-height: 1.7; max-width: 32em; padding: 5% calc(50% - 16em) 35%; position: relative; z-index: 2;
}
Developer | Keisuke Takahashi |
Username | ksksoft |
Uploaded | November 19, 2022 |
Rating | 4.5 |
Size | 2,143 Kb |
Views | 28,336 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
One div DORAEMON | 2,448 Kb |
Pure CSS Drawer Menu | 2,472 Kb |
Pure CSS drower menu with transition-delay | 1,898 Kb |
Box-shadow hexagon mask | 2,196 Kb |
CSS Slot Machine | 3,111 Kb |
Table-cell with gutter | 1,923 Kb |
One Element Conic Gradient | 2,248 Kb |
The mount | 3,444 Kb |
Gooey text melt away... | 2,420 Kb |
Pure css Dialogue UI | 2,457 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Tic Tac Toe | Volv | 4,862 Kb |
Flex Chart | James_zedd | 4,111 Kb |
Scarlett Johansson Tribute Page | Diomed | 3,233 Kb |
Pattern lab logo | TimPietrusky | 3,666 Kb |
A Pen by Alex Edwards | Exards | 8,218 Kb |
SVG email test v2.0 | M_J_Robbins | 2,090 Kb |
Font stack | Adrianjacob | 1,868 Kb |
Canvas stripes | Adrianparr | 1,948 Kb |
Wip elementary os navbar | Nickcolley | 2,993 Kb |
A Pen by Kenny Mark | Kennymark | 5,574 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!