<div class="mod_slideshow" data-init="slideshow" data-slideshow-data='{"i18n":{"prev":"Previous Bill","next":"Next Bill"}}' data-slideshow-options='{"animationDuration":100}'>
<div class="slides" data-slideshow="slides">
{{#each slides}}
{{> "demo/modules/slideshow/_slideshow_slide.js" this}}
{{/each}}
</div>
</div>
Slideshow / carousel thingy (for demo purposes only).
estatico.modules.slideshow.instances.slideshow1
to the console to see this instance and, specifically, how data and options are handled./mocks/demo/modules/slideshow/slideshow.json
which is delayed by 5s when running the gulp preview server.debouncedscroll
and debouncedresize
events ands logs the orginial ones.mq
event and logs whether it's currently above or below the "small" breakpoint (as specified in _mediaqueries.scss
).Copy HTML. The data-slideshow-data
and data-slideshow-options
attributes are optional. Dito for the script block which can be used for global data/options.
{
"slides": [
{
"src": "http://www.fillmurray.com/600/204",
"alt": "Bill Murray 4"
},
{
"src": "http://www.fillmurray.com/600/205",
"alt": "Bill Murray 5"
},
{
"src": "http://www.fillmurray.com/600/206",
"alt": "Bill Murray 6"
}
]
}