- all the datas-... attributes of a same action must use the same unique name.
- data-stp-fastscroll-exclusion allow you to offset the scroll by the height of a specific element.
This element can be placed everywhere in the page, its height will offset the scroll even if the element isn't close to the target.
Classic text block after some float elements. The clear, juste before, repair the flow of the page.
- No need to create an html structure, the module js will create it on click.
- This require FontAwesome in the project (for the rotating)
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
All the numericals values represent pixels :
- rounded edges : r5, r10, r15, ..., r45, r50
- width : w100, w200, w300, ..., w900, w1000
- internal margins : m5, m10, m15, ..., m45, m50
- no css by defaut with this module. You have to specify our own css for the .stp-lift-on class.
- you can use this in other ways that a simple fixed position : hide the block, show a popup when scroll pass a specific point, etc. - the "pusher" (data-stp-lift-pusher) can use any type of tag (div, label, ...).
1) Classical structure (block-x-x>div>div>img) : the picture size is defined by a max-width and max-height at 100%.
2) Fast structure block-x-x>div>img : the picture will take 100% of the width.
3) Other example with another ratio.
4) Same example but with an horizontal picture, no vertical centering with this module
5) custom ratio : you have to use a less mixin in your own css : .block-ratio(@width,@height), targeting .my-custom-ratio (you can use any class name);
1) Add a "data-stp-menu-open" attribute on a button and specify the name of the targeted menu
2) Add a "data-stp-menu" attribute on the menu itself to name it
3) Use the "stp-menu-open" class to show/animate the menu (no css by defaut)
4) Set an element with a "data-stp-menu-close" attribute in the menu to close it on click
- Only one argument available : a color (text or hex).
- Only "background-position" is manipulated, you have to use other background attributes, like "background-size", by your own.
- "background-position" is fixed horizontaly to 50% by the JS.