|
|
Line 8: |
Line 8: |
| | | |
| <style type="text/css"> | | <style type="text/css"> |
− | @import url(http://fonts.googleapis.com/css?family=Oswald:300,400,700);
| + | html { |
− | @import url(http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900,200italic,300italic,400italic,600italic,700italic,900italic);
| + | height: 100%; |
− | | + | overflow: hidden; |
− | /* Override UGG site */
| + | |
− | #main {width: 100%; padding:0;}
| + | |
− | .content-asset p {margin:0 auto;}
| + | |
− | .breadcrumb {display:none;}
| + | |
− | | + | |
− | /* Helpers */
| + | |
− | /**************************/
| + | |
− | .margin-top-10 {padding-top:10px;}
| + | |
− | .margin-bot-10 {padding-bottom:10px;}
| + | |
− | | + | |
− | /* Typography */
| + | |
− | /**************************/
| + | |
− | #parallax-world-of-ugg h1 {font-family:'Oswald', sans-serif; font-size:24px; font-weight:400; text-transform: uppercase; color:black; padding:0; margin:0;}
| + | |
− | #parallax-world-of-ugg h2 {font-family:'Oswald', sans-serif; font-size:70px; letter-spacing:10px; text-align:center; color:white; font-weight:400; text-transform:uppercase; z-index:10; opacity:.8;}
| + | |
− | #parallax-world-of-ugg h3 {font-family:'Oswald', sans-serif; font-size:14px; line-height:0; font-weight:400; letter-spacing:8px; text-transform: uppercase; color:black;}
| + | |
− | #parallax-world-of-ugg p {font-family:'Source Sans Pro', sans-serif; font-weight:400; font-size:14px; line-height:24px;}
| + | |
− | .first-character {font-weight:400; float: left; font-size: 84px; line-height: 64px; padding-top: 4px; padding-right: 8px; padding-left: 3px; font-family: 'Source Sans Pro', sans-serif;}
| + | |
− | | + | |
− | .sc {color: #3b8595;}
| + | |
− | .ny {color: #3d3c3a;}
| + | |
− | .atw {color: #c48660;}
| + | |
− | | + | |
− | /* Section - Title */
| + | |
− | /**************************/
| + | |
− | #parallax-world-of-ugg .title {background: white; padding: 60px; margin:0 auto; text-align:center;}
| + | |
− | #parallax-world-of-ugg .title h1 {font-size:35px; letter-spacing:8px;}
| + | |
− | | + | |
− | /* Section - Block */
| + | |
− | /**************************/
| + | |
− | #parallax-world-of-ugg .block {background: white; padding: 60px; width:820px; margin:0 auto; text-align:justify;}
| + | |
− | #parallax-world-of-ugg .block-gray {background: #f2f2f2;padding: 60px;}
| + | |
− | #parallax-world-of-ugg .section-overlay-mask {position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: black; opacity: 0.70;}
| + | |
− | | + | |
− | /* Section - Parallax */
| + | |
− | /**************************/
| + | |
− | #parallax-world-of-ugg .parallax-one {opacity: 0.5; padding-top: 200px; padding-bottom: 200px; overflow: hidden; position: relative; width: 100%; background-image: url(http://www.leisurelk.com/wp-content/uploads/2014/08/1.jpg); background-attachment: fixed; background-size: cover; -moz-background-size: cover; -webkit-background-size: cover; background-repeat: no-repeat; background-position: top center;}
| + | |
− | #parallax-world-of-ugg .parallax-two {opacity: 0.5; padding-top: 200px; padding-bottom: 200px; overflow: hidden; position: relative; width: 100%; background-image: url(http://kandyperaherabookings.com/images/02/04.jpg); background-attachment: fixed; background-size: cover; -moz-background-size: cover; -webkit-background-size: cover; background-repeat: no-repeat; background-position: center center;}
| + | |
− | #parallax-world-of-ugg .parallax-three {opacity: 0.5; padding-top: 200px; padding-bottom: 200px; overflow: hidden; position: relative; width: 100%; background-image: url(http://i.ytimg.com/vi/CVX9Z3ZSj7g/maxresdefault.jpg); background-attachment: fixed; background-size: cover; -moz-background-size: cover; -webkit-background-size: cover; background-repeat: no-repeat; background-position: center center;}
| + | |
− | | + | |
− | /* Extras */
| + | |
− | /**************************/
| + | |
− | #parallax-world-of-ugg .line-break {border-bottom:1px solid black; width: 150px; margin:0 auto;}
| + | |
− | | + | |
− | /* Media Queries */
| + | |
− | /**************************/
| + | |
− | @media screen and (max-width: 959px) and (min-width: 768px) {
| + | |
− | #parallax-world-of-ugg .block {padding: 40px; width:620px;}
| + | |
| } | | } |
− | @media screen and (max-width: 767px) {
| + | body { |
− | #parallax-world-of-ugg .block {padding: 30px; width:420px;} | + | color: #fff; |
− | #parallax-world-of-ugg h2 {font-size:30px;}
| + | margin:0; |
− | #parallax-world-of-ugg .block {padding: 30px;} | + | padding:0; |
− | #parallax-world-of-ugg .parallax-one, #parallax-world-of-ugg .parallax-two, #parallax-world-of-ugg .parallax-three {padding-top:100px; padding-bottom:100px;} | + | -webkit-perspective: 1px; |
| + | perspective: 1px; |
| + | -webkit-transform-style: preserve-3d; |
| + | transform-style: preserve-3d; |
| + | height: 100%; |
| + | overflow-y: scroll; |
| + | overflow-x: hidden; |
| } | | } |
− | @media screen and (max-width: 479px) {
| + | header { |
− | #parallax-world-of-ugg .block {padding: 30px 15px; width:290px;} | + | 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(https://dl.dropboxusercontent.com/u/70180925/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; |
| } | | } |
| | | |
| </style> | | </style> |
− | <div id="parallax-world-of-ugg"> | + | <header> |
− | | + | <h1>Parallax header</h1> |
− | <section>
| + | <p>Parallax scroll effect like Twitter. Pure css, javacsript free.</p> |
− | <div class="title">
| + | </header> |
− |
| + | <main> |
− | <h1>Simply Parallax Effect</h1>
| + | <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> |
− | <h3>By YVK</h3>
| + | <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> |
− | </div> | + | </main> |
− | </section>
| + | |
− | | + | |
− | <section>
| + | |
− | <div class="parallax-one">
| + | |
− | <h2>Lorem Ipsum is simply dummy text</h2>
| + | |
− | </div>
| + | |
− | </section>
| + | |
− | | + | |
− | <section>
| + | |
− | <div class="block">
| + | |
− | <p><span class="first-character sc">L</span>orem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
| + | |
− | <p class="line-break margin-top-10"></p>
| + | |
− | <p class="margin-top-10">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
| + | |
− | </div>
| + | |
− | </section> | + | |
− | | + | |
− | <section>
| + | |
− | <div class="parallax-two">
| + | |
− | <h2>Lorem Ipsum 01</h2>
| + | |
− | </div>
| + | |
− | </section>
| + | |
− | | + | |
− | <section>
| + | |
− | <div class="block">
| + | |
− | <p><span class="first-character ny">L</span>orem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
| + | |
− | <p class="line-break margin-top-10"></p>
| + | |
− | <p class="margin-top-10">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
| + | |
− | </div>
| + | |
− | </section>
| + | |
− | | + | |
− | <section>
| + | |
− | <div class="parallax-three">
| + | |
− | <h2>Lorem Ipsum 02</h2>
| + | |
− | </div>
| + | |
− | </section>
| + | |
− | | + | |
− | <section>
| + | |
− | <div class="block">
| + | |
− | <p><span class="first-character ny">L</span>orem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
| + | |
− | <p class="line-break margin-top-10"></p>
| + | |
− | <p class="margin-top-10">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
| + | |
− | </div>
| + | |
− | </section>
| + | |
− |
| + | |
− | </div> | + | |
| </html> | | </html> |