├── .gitignore ├── LICENSE.md ├── README.md ├── bower.json ├── demo ├── demo-dom-repeat.html ├── demo-hello-world.html ├── demo-overview.html ├── demo-paper-scroll-header-panel.html ├── demo-playstore.html ├── demo-real-world.html ├── demo-scroll-panel-element.html ├── demo-successive-parallax-layers.html ├── index.html └── res │ ├── doge.jpg │ ├── huelgoat.jpg │ ├── ile-vierge.jpg │ ├── meneham.jpg │ ├── parallax.jpg │ ├── ploumanach.jpg │ ├── saint-michel.jpg │ ├── wikipedia.png │ └── yeun-elez.jpg ├── index.html ├── parallax-element.html ├── parallax-layers.html └── parallax-scroller-behavior.html /.gitignore: -------------------------------------------------------------------------------- 1 | *.db 2 | bower_components -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | Copyright (c) 2016 Vincent Guillou 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 5 | 6 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 7 | 8 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # <parallax-element> 2 | _A Polymer element allowing to declaratively create simple vertical or horizontal parallax scrolling effects. It features built-in deactivation of the effect in browsers (IE) that do not fully support the CSS transformations leveraged to achieve the parallax scrolling._ 3 | 4 | Please refer to the component page for more informations. 5 | 6 | Demos available here. 7 | 8 | ## Browser Support 9 | 10 | ![Chrome](https://github.com/alrra/browser-logos/blob/master/src/chrome/chrome_64x64.png) | ![Firefox](https://github.com/alrra/browser-logos/blob/master/src/firefox/firefox_64x64.png) | ![Opera](https://github.com/alrra/browser-logos/blob/master/src/opera/opera_64x64.png) | ![Safari](https://github.com/alrra/browser-logos/blob/master/src/safari/safari_64x64.png) | ![IE](https://github.com/alrra/browser-logos/blob/master/src/archive/internet-explorer_9-11/internet-explorer_9-11_64x64.png) | ![Edge](https://github.com/alrra/browser-logos/blob/master/src/edge/edge_64x64.png) 11 | :---:|:---:|:---:|:---:|:---:|:---:| 12 | ✔ | ✔ (flattened rendering on Android) | ✔ | ✔ | ✘ (flattened rendering) | ✔ | 13 | 14 | [Versions match Polymer compatibility](https://www.polymer-project.org/1.0/resources/compatibility.html) 15 | 16 | ## License 17 | 18 | [MIT License](https://github.com/vguillou/parallax-element/blob/master/LICENSE.md) 19 | -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "parallax-element", 3 | "version": "1.0.1", 4 | "authors": [ 5 | "Vincent Guillou " 6 | ], 7 | "description": "A Polymer element allowing to declaratively create simple vertical or horizontal parallax scrolling effects. It features built-in deactivation of the effect in browsers (IE) that do not fully support the CSS transformations leveraged to achieve the parallax scrolling.", 8 | "keywords": [ 9 | "web-components", "web-component", "web components", "web component", "polymer", "parallax", "scrolling", "perspective" 10 | ], 11 | "main": "parallax-element.html", 12 | "license": "MIT", 13 | "ignore": [ 14 | "**/.*", 15 | "node_modules", 16 | "bower_components", 17 | "test/temp", 18 | "test/bower_components" 19 | ], 20 | "dependencies": { 21 | "polymer": "Polymer/polymer#^1.2.0", 22 | "iron-resizable-behavior": "PolymerElements/iron-resizable-behavior#^1.0.0" 23 | }, 24 | "devDependencies": { 25 | "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", 26 | "iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0", 27 | "iron-icons": "PolymerElements/iron-icons#^1.0.0", 28 | "iron-image": "PolymerElements/iron-image#^1.0.0", 29 | "paper-button": "PolymerElements/paper-button#^1.0.0", 30 | "paper-icon-button": "PolymerElements/paper-icon-button#^1.0.0", 31 | "paper-toggle-button": "PolymerElements/paper-toggle-button#^1.0.0", 32 | "paper-toolbar": "PolymerElements/paper-toolbar#^1.0.0", 33 | "paper-scroll-header-panel": "PolymerElements/paper-scroll-header-panel#^1.0.0" 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /demo/demo-dom-repeat.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | "dom-repeat" demo 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 53 | 54 | 55 | 56 | 57 | 80 | 81 | 99 | 100 | 101 | -------------------------------------------------------------------------------- /demo/demo-hello-world.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | "parallax-element" hello world 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 52 | 53 | 54 | 55 | 56 | 57 | 58 |
59 | Hello 60 |
61 |
62 |
63 | World 64 |
65 |
66 | 67 | 68 | -------------------------------------------------------------------------------- /demo/demo-overview.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | parallax-element overview demo 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 147 | 148 | 149 | 150 | 151 | 254 | 255 | 302 | 303 | -------------------------------------------------------------------------------- /demo/demo-paper-scroll-header-panel.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | "paper-scroll-header-panel" demo 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /demo/demo-playstore.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | "parallax-element" Google Play Store v5 app-page-like effect 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 127 | 128 | 129 | 130 |
131 | 132 |
parallax-element
133 |
134 | 135 | 136 | 137 | 142 | 143 |
144 |
P
145 |
parallax-element
146 |
A Polymer element allowing to declaratively create simple vertical or horizontal parallax scrolling effects.
147 | 148 |
149 | GitHub 150 | Demos 151 |
152 |
153 |
Fugit adolescens vis et, ei graeci forensibus sed.
154 |
Convenire definiebas scriptorem eu cum. Sit dolor dicunt consectetuer no. Ea duis bonorum nec, falli paulo aliquid ei eum.
155 |
156 |
157 | Usu eu novum principes, vel quodsi aliquip ea. 158 | Has at minim mucius aliquam, est id tempor laoreet. 159 | Pro saepe pertinax ei, ad pri animal labores suscipiantur. 160 | Detracto suavitate repudiandae no eum. Id adhuc minim soluta nam. 161 | Iisque perfecto dissentiet cum et, sit ut quot mandamus, ut vim tibique splendide instructior. 162 | Id nam odio natum malorum, tibique copiosae expetenda mel ea. 163 | Cu mei vide viris gloriatur, at populo eripuit sit. 164 | Modus commodo minimum eum te, vero utinam assueverit per eu. 165 |
166 |
167 | 168 |
169 | 170 | 171 | 172 |
173 | 190 | 191 | 192 | 193 | -------------------------------------------------------------------------------- /demo/demo-real-world.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Breizh 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 135 |

Meneham

136 |
137 | 138 |
139 | 140 | 141 |

Brittany (/ˈbrɪtənɪ/; French: Bretagne [bʁə.taɲ]; Breton: Breizh, pronounced [bʁɛjs] or [bʁɛχ];[1] Gallo: Bertaèyn, pronounced [bəʁ.taɛɲ]) is a cultural region in the north-west of France. Covering the western part of Armorica, as it was known during the period of Roman occupation, Brittany subsequently became an independent kingdom and then a duchy before being united with the Kingdom of France in 1532 as a province governed as if it were a separate nation under the crown. Brittany has also been referred to as Less, Lesser or Little Britain (as opposed to Great Britain). It is bordered by the English Channel to the north, the Celtic Sea and the Atlantic Ocean to the west, and the Bay of Biscay to the south. Its land area is 34,023 km² (13,136 sq mi).

142 | 143 | 144 |
145 | 146 | 147 | 148 |

Yeun Elez

149 |
150 | 151 |
152 | 153 | 154 |

Prehistoric origins

155 |

Brittany has been inhabited by humans since the Lower Paleolithic. The first settlers were Neanderthals. This population was scarce and very similar to the other Neanderthals found in the whole of Western Europe. Their only original feature was a distinct culture, called "Colombanian".[12] One of the oldest hearths in the world has been found in Plouhinec, Finistère. It is 450,000 years old.

156 |

Neolithic Brittany is characterised by an important megalithic production, and it is sometimes designated as the "core area" of megalithic culture.[13] The oldest monuments, cairns, were followed by princely tombs and stone rows. The Morbihan département, on the southern coast, comprises a large share of these structures, including the Carnac stones and the Broken Menhir of Er Grah in Locmariaquer, the largest single stone erected by Neolithic man.

157 | 158 | 159 |
160 | 161 | 162 | 163 |

Crozon

164 |
165 | 166 |
167 |

Middle Ages

168 |

At the beginning of the medieval era, Brittany was divided between three kingdoms, Domnonea, Cornouaille and Broërec. These realms eventually merged into a single state during the 9th century.[20][21] The unification of Brittany was carried out by Nominoe, king between 845 and 851 and considered as the Breton pater patriae. His son Erispoe secured the independence of the new kingdom of Brittany and won the Battle of Jengland against Charles the Bald. The Bretons won another war in 867, and the kingdom reached then its maximum extent: it received parts of Normandy, Maine and Anjou and the Channel Islands.

169 | 170 | 171 |
172 | 173 | 174 | 175 |

Menez Sant-Mikael

176 |
177 | 178 |
179 | 180 | 181 |

Geography and natural history

182 |

Brittany is the largest French peninsula. It is around 34,030 km2 (13,140 sq mi) and stretches towards the northwest and the Atlantic Ocean. It is bordered to the north by the English Channel, to the south by the Bay of Biscay and the waters located between the western coast and Ushant island form the Iroise Sea.

183 |

The Breton coast is very indented, with many cliffs, rias and capes. The Gulf of Morbihan is a vast natural harbour with some forty islands that is almost a closed sea. In total, around 800 islands lie off the mainland; the largest being Belle Île, in the south. Brittany has over 2,860 km (1,780 mi) of coastline; it represents a third of the total French coastline.

184 | 185 | 186 |
187 | 188 | 189 | 190 |

Ploumanac'h

191 |
192 | 193 |
194 | 195 | 196 |

Regional identity

197 |

Breton political parties do not have a wide support and their electoral success is small. However, Bretons have a strong cultural identity. According to a poll made in 2008, 50% of the inhabitants of the Region Brittany consider themselves as much Breton as French, 22.5% feel more Breton than French, and 15.4% more French than Breton. A minority, 1.5%, considers itself Breton but not French, while 9.3% do not consider themselves to be Breton at all.

198 |

Breton is a Celtic language derived from the historical Common Brittonic language, and is most closely related to Cornish and Welsh. It was imported in Western Armorica during the 5th century by Britons fleeing the Anglo-Saxon invasion of Britain. Since the 13th century, long before the union of Brittany and France, the main administrative language of the Duchy of Brittany had been French, which had replaced Latin.

199 | 200 | 201 |
202 | 203 | 204 | 205 |

Huelgoat

206 |
207 | 208 | 212 | 213 |
214 | 215 | 216 | -------------------------------------------------------------------------------- /demo/demo-scroll-panel-element.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 129 | 164 | -------------------------------------------------------------------------------- /demo/demo-successive-parallax-layers.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Breizh 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 |
148 |

Meneham

149 |
150 |
151 | 152 | 153 | 154 |
155 |

Yeun Elez

156 |
157 |
158 | 159 | 160 | 161 |
162 |

Crozon

163 |
164 |
165 | 166 | 167 | 168 |
169 |

Menez Sant-Mikael

170 |
171 |
172 | 173 |
174 |

Photos : Vincent Guillou

175 |
176 | 177 | 178 | 179 |
180 |

Ploumanac'h

181 |
182 |
183 | 184 | 185 | 186 |
187 |

Huelgoat

188 |
189 |
190 | 191 | 194 | 195 |
196 | 197 | 198 | -------------------------------------------------------------------------------- /demo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | "parallax-element" demo index 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 17 | 18 | 19 | 27 | -------------------------------------------------------------------------------- /demo/res/doge.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vguillou/parallax-element/f0222f4add3cb6c3bdec67a732d45658587a9a89/demo/res/doge.jpg -------------------------------------------------------------------------------- /demo/res/huelgoat.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vguillou/parallax-element/f0222f4add3cb6c3bdec67a732d45658587a9a89/demo/res/huelgoat.jpg -------------------------------------------------------------------------------- /demo/res/ile-vierge.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vguillou/parallax-element/f0222f4add3cb6c3bdec67a732d45658587a9a89/demo/res/ile-vierge.jpg -------------------------------------------------------------------------------- /demo/res/meneham.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vguillou/parallax-element/f0222f4add3cb6c3bdec67a732d45658587a9a89/demo/res/meneham.jpg -------------------------------------------------------------------------------- /demo/res/parallax.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vguillou/parallax-element/f0222f4add3cb6c3bdec67a732d45658587a9a89/demo/res/parallax.jpg -------------------------------------------------------------------------------- /demo/res/ploumanach.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vguillou/parallax-element/f0222f4add3cb6c3bdec67a732d45658587a9a89/demo/res/ploumanach.jpg -------------------------------------------------------------------------------- /demo/res/saint-michel.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vguillou/parallax-element/f0222f4add3cb6c3bdec67a732d45658587a9a89/demo/res/saint-michel.jpg -------------------------------------------------------------------------------- /demo/res/wikipedia.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vguillou/parallax-element/f0222f4add3cb6c3bdec67a732d45658587a9a89/demo/res/wikipedia.png -------------------------------------------------------------------------------- /demo/res/yeun-elez.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vguillou/parallax-element/f0222f4add3cb6c3bdec67a732d45658587a9a89/demo/res/yeun-elez.jpg -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /parallax-element.html: -------------------------------------------------------------------------------- 1 | 64 | 65 | 66 | 67 | 68 | 69 | 108 | 114 | -------------------------------------------------------------------------------- /parallax-layers.html: -------------------------------------------------------------------------------- 1 | 110 | 111 | 112 | 113 | 142 | 328 | -------------------------------------------------------------------------------- /parallax-scroller-behavior.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | --------------------------------------------------------------------------------