Lemon drops
32 |Fruitcake toffee jujubes. Topping biscuit sesame snaps jelly caramels jujubes tiramisu fruitcake. Marzipan tart lemon drops chocolate sesame snaps jelly beans.
33 |├── README.md ├── css ├── component.css └── demo.css ├── fonts └── bpicons │ ├── bpicons.eot │ ├── bpicons.svg │ ├── bpicons.ttf │ ├── bpicons.woff │ └── license.txt ├── images ├── 1.png ├── 2.png ├── 3.png ├── 4.png ├── 5.png └── 6.png ├── index.html └── js ├── cbpScroller.js ├── classie.js └── modernizr.custom.js /README.md: -------------------------------------------------------------------------------- 1 | 2 | On Scroll Effect Layout 3 | ========= 4 | An on scroll effect template that animates the sides of sections once they are in the viewport. 5 | 6 | [article on Codrops](http://tympanus.net/codrops/?p=15962) 7 | 8 | [demo](http://tympanus.net/Blueprints/OnScrollEffectLayout/) 9 | 10 | [LICENSING & TERMS OF USE](http://tympanus.net/codrops/licensing/) -------------------------------------------------------------------------------- /css/component.css: -------------------------------------------------------------------------------- 1 | .cbp-so-scroller { 2 | margin-top: 3em; 3 | overflow: hidden; 4 | } 5 | 6 | .cbp-so-section { 7 | margin-bottom: 15em; 8 | } 9 | 10 | /* Clear floats of children */ 11 | .cbp-so-section:before, 12 | .cbp-so-section:after { 13 | content: " "; 14 | display: table; 15 | } 16 | 17 | .cbp-so-section:after { 18 | clear: both; 19 | } 20 | 21 | /* Text styling */ 22 | .cbp-so-section h2 { 23 | font-size: 5em; 24 | font-weight: 300; 25 | line-height: 1; 26 | } 27 | 28 | .cbp-so-section p { 29 | font-size: 2em; 30 | font-weight: 300; 31 | } 32 | 33 | /* Sides */ 34 | .cbp-so-side { 35 | width: 50%; 36 | float: left; 37 | margin: 0; 38 | padding: 3em 4%; 39 | overflow: hidden; 40 | min-height: 12em; 41 | -webkit-transition: -webkit-transform 0.5s, opacity 0.5s; 42 | -moz-transition: -moz-transform 0.5s, opacity 0.5s; 43 | transition: transform 0.5s, opacity 0.5s; 44 | } 45 | 46 | /* Clear floats of children */ 47 | .cbp-so-side:before, 48 | .cbp-so-side:after { 49 | content: " "; 50 | display: table; 51 | } 52 | 53 | .cbp-so-side:after { 54 | clear: both; 55 | } 56 | 57 | .cbp-so-side-right { 58 | text-align: left; 59 | } 60 | 61 | .cbp-so-side-left { 62 | text-align: right; 63 | } 64 | 65 | .cbp-so-side-right img { 66 | float: left; 67 | } 68 | 69 | .cbp-so-side-left img { 70 | float: right; 71 | } 72 | 73 | /* Initial state (hidden or anything else) */ 74 | .cbp-so-init .cbp-so-side { 75 | opacity: 0; 76 | } 77 | 78 | .cbp-so-init .cbp-so-side-left { 79 | -webkit-transform: translateX(-80px); 80 | -moz-transform: translateX(-80px); 81 | transform: translateX(-80px); 82 | } 83 | 84 | .cbp-so-init .cbp-so-side-right { 85 | -webkit-transform: translateX(80px); 86 | -moz-transform: translateX(80px); 87 | transform: translateX(80px); 88 | } 89 | 90 | /* Animated state */ 91 | /* add you final states (transition) or your effects (animations) for each side */ 92 | .cbp-so-section.cbp-so-animate .cbp-so-side-left, 93 | .cbp-so-section.cbp-so-animate .cbp-so-side-right { 94 | -webkit-transform: translateX(0px); 95 | -moz-transform: translateX(0px); 96 | transform: translateX(0px); 97 | opacity: 1; 98 | } 99 | 100 | /* For example, add a delay for the right side: 101 | .cbp-so-section.cbp-so-animate .cbp-so-side-right { 102 | -webkit-transition-delay: 0.2s; 103 | -moz-transition-delay: 0.2s; 104 | transition-delay: 0.2s; 105 | } 106 | */ 107 | 108 | /* Example media queries */ 109 | 110 | @media screen and (max-width: 73.5em) { 111 | .cbp-so-scroller { 112 | font-size: 65%; 113 | } 114 | 115 | .cbp-so-section h2 { 116 | margin: 0; 117 | } 118 | 119 | .cbp-so-side img { 120 | max-width: 120%; 121 | } 122 | } 123 | 124 | @media screen and (max-width: 41.125em) { 125 | .cbp-so-side { 126 | float: none; 127 | width: 100%; 128 | } 129 | 130 | .cbp-so-side img { 131 | max-width: 100%; 132 | } 133 | } 134 | 135 | -------------------------------------------------------------------------------- /css/demo.css: -------------------------------------------------------------------------------- 1 | /* General Blueprint Style */ 2 | @import url(http://fonts.googleapis.com/css?family=Lato:300,400,700); 3 | @font-face { 4 | font-family: 'bpicons'; 5 | src:url('../fonts/bpicons/bpicons.eot'); 6 | src:url('../fonts/bpicons/bpicons.eot?#iefix') format('embedded-opentype'), 7 | url('../fonts/bpicons/bpicons.woff') format('woff'), 8 | url('../fonts/bpicons/bpicons.ttf') format('truetype'), 9 | url('../fonts/bpicons/bpicons.svg#bpicons') format('svg'); 10 | font-weight: normal; 11 | font-style: normal; 12 | } /* Made with http://icomoon.io/ */ 13 | 14 | *, *:after, *:before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } 15 | body, html { font-size: 100%; padding: 0; margin: 0;} 16 | 17 | /* Clearfix hack by Nicolas Gallagher: http://nicolasgallagher.com/micro-clearfix-hack/ */ 18 | .clearfix:before, .clearfix:after { content: " "; display: table; } 19 | .clearfix:after { clear: both; } 20 | 21 | body { 22 | font-family: 'Lato', Calibri, Arial, sans-serif; 23 | color: #fff; 24 | background: #47a3da; 25 | } 26 | 27 | a { 28 | color: #f0f0f0; 29 | text-decoration: none; 30 | } 31 | 32 | a:hover { 33 | color: #000; 34 | } 35 | 36 | .container > header { 37 | width: 90%; 38 | max-width: 69em; 39 | margin: 0 auto; 40 | padding: 2.875em 1.875em 1.875em; 41 | } 42 | 43 | .container > header h1 { 44 | font-size: 2.125em; 45 | line-height: 1.3; 46 | margin: 0 0 0.6em 0; 47 | float: left; 48 | font-weight: 400; 49 | } 50 | 51 | .container > header > span { 52 | display: block; 53 | position: relative; 54 | z-index: 9999; 55 | font-weight: 700; 56 | text-transform: uppercase; 57 | letter-spacing: 0.5em; 58 | padding: 0 0 0.6em 0.1em; 59 | } 60 | 61 | .container > header > span span:after { 62 | width: 30px; 63 | height: 30px; 64 | left: -12px; 65 | font-size: 50%; 66 | top: -8px; 67 | font-size: 75%; 68 | position: relative; 69 | } 70 | 71 | .container > header > span span:hover:before { 72 | content: attr(data-content); 73 | text-transform: none; 74 | text-indent: 0; 75 | letter-spacing: 0; 76 | font-weight: 300; 77 | font-size: 110%; 78 | padding: 0.8em 1em; 79 | line-height: 1.2; 80 | text-align: left; 81 | left: auto; 82 | margin-left: 4px; 83 | position: absolute; 84 | color: #47a3da; 85 | background: #fff; 86 | } 87 | 88 | .container > header nav { 89 | float: right; 90 | text-align: center; 91 | } 92 | 93 | .container > header nav a { 94 | display: inline-block; 95 | position: relative; 96 | text-align: left; 97 | width: 2.5em; 98 | height: 2.5em; 99 | background: #47a3da; 100 | border-radius: 50%; 101 | margin: 0 0.1em; 102 | border: 4px solid #fff; 103 | } 104 | 105 | .container > header nav a > span { 106 | display: none; 107 | } 108 | 109 | .container > header nav a:hover:before { 110 | content: attr(data-info); 111 | color: #fff; 112 | position: absolute; 113 | width: 600%; 114 | top: 120%; 115 | text-align: right; 116 | right: 0; 117 | pointer-events: none; 118 | } 119 | 120 | .container > header nav a:hover { 121 | background: #fff; 122 | } 123 | 124 | .bp-icon:after { 125 | font-family: 'bpicons'; 126 | speak: none; 127 | font-style: normal; 128 | font-weight: normal; 129 | font-variant: normal; 130 | text-transform: none; 131 | text-align: center; 132 | color: #fff; 133 | -webkit-font-smoothing: antialiased; 134 | } 135 | 136 | .container > header nav .bp-icon:after { 137 | position: absolute; 138 | top: 0; 139 | left: 0; 140 | width: 100%; 141 | height: 100%; 142 | line-height: 2; 143 | text-indent: 0; 144 | } 145 | 146 | .container > header nav a:hover:after { 147 | color: #47a3da; 148 | } 149 | 150 | .bp-icon-next:after { 151 | content: "\e000"; 152 | } 153 | .bp-icon-drop:after { 154 | content: "\e001"; 155 | } 156 | .bp-icon-archive:after { 157 | content: "\e002"; 158 | } 159 | .bp-icon-about:after { 160 | content: "\e003"; 161 | } 162 | .bp-icon-prev:after { 163 | content: "\e004"; 164 | } 165 | 166 | @media screen and (max-width: 55em) { 167 | 168 | .container > header h1, 169 | .container > header nav { 170 | float: none; 171 | } 172 | 173 | .container > header > span, 174 | .container > header h1 { 175 | text-align: center; 176 | } 177 | 178 | .container > header nav { 179 | margin: 0 auto; 180 | } 181 | 182 | .container > header > span { 183 | text-indent: 30px; 184 | } 185 | } -------------------------------------------------------------------------------- /fonts/bpicons/bpicons.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codrops/OnScrollEffectLayout/ec21e83fe918e942a9ee298dcbd158eb0a973c06/fonts/bpicons/bpicons.eot -------------------------------------------------------------------------------- /fonts/bpicons/bpicons.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /fonts/bpicons/bpicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codrops/OnScrollEffectLayout/ec21e83fe918e942a9ee298dcbd158eb0a973c06/fonts/bpicons/bpicons.ttf -------------------------------------------------------------------------------- /fonts/bpicons/bpicons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codrops/OnScrollEffectLayout/ec21e83fe918e942a9ee298dcbd158eb0a973c06/fonts/bpicons/bpicons.woff -------------------------------------------------------------------------------- /fonts/bpicons/license.txt: -------------------------------------------------------------------------------- 1 | Icon Set: Font Awesome -- http://fortawesome.github.com/Font-Awesome/ 2 | License: SIL -- http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL 3 | 4 | 5 | Icon Set: Eco Ico -- http://dribbble.com/shots/665585-Eco-Ico 6 | License: CC0 -- http://creativecommons.org/publicdomain/zero/1.0/ -------------------------------------------------------------------------------- /images/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codrops/OnScrollEffectLayout/ec21e83fe918e942a9ee298dcbd158eb0a973c06/images/1.png -------------------------------------------------------------------------------- /images/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codrops/OnScrollEffectLayout/ec21e83fe918e942a9ee298dcbd158eb0a973c06/images/2.png -------------------------------------------------------------------------------- /images/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codrops/OnScrollEffectLayout/ec21e83fe918e942a9ee298dcbd158eb0a973c06/images/3.png -------------------------------------------------------------------------------- /images/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codrops/OnScrollEffectLayout/ec21e83fe918e942a9ee298dcbd158eb0a973c06/images/4.png -------------------------------------------------------------------------------- /images/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codrops/OnScrollEffectLayout/ec21e83fe918e942a9ee298dcbd158eb0a973c06/images/5.png -------------------------------------------------------------------------------- /images/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codrops/OnScrollEffectLayout/ec21e83fe918e942a9ee298dcbd158eb0a973c06/images/6.png -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 |Fruitcake toffee jujubes. Topping biscuit sesame snaps jelly caramels jujubes tiramisu fruitcake. Marzipan tart lemon drops chocolate sesame snaps jelly beans.
33 |Lollipop powder danish sugar plum caramels liquorice sweet cookie. Gummi bears caramels gummi bears candy canes cheesecake sweet roll icing dragée. Gummies jelly-o tart. Cheesecake unerdwear.com candy canes apple pie halvah chocolate tiramisu.
45 |Soufflé bonbon jelly cotton candy liquorice dessert jelly bear claw candy canes. Pudding halvah bonbon marzipan powder. Marzipan gingerbread sweet jelly.
51 |Sesame snaps sweet wafer danish. Chupa chups carrot cake icing donut halvah bonbon. Chocolate cake candy marshmallow pudding dessert marzipan jujubes sugar plum.
63 |Chupa chups pudding lollipop gummi bears gummies cupcake pie. Cookie cotton candy caramels. Oat cake dessert applicake. Sweet roll tiramisu sweet roll sweet roll.
69 |Cake cotton candy lollipop. Cake croissant cheesecake candy sugar plum icing apple pie wafer. Pie sugar plum tiramisu tiramisu pie fruitcake candy icing. Candy icing gummies gummies cheesecake brownie lemon drops chocolate gingerbread.
81 |