Foundation Joyride
Joyride is a JavaScript effect for feature tours. Create an example as follows:
Example
<
h3
id=
"first"First stop!
<
/h3
<
h3
id=
"second"Second stop!
<
/h3
<
ol
class=
"joyride-list"
data-joyride
<
li
data-id=
"first"
<
pFirst stop. The ride has begun!
<
/p
<
/li
<
li
data-id=
"second"
<
h4Second Stop
<
/h4
<
pAny valid HTML will work inside the Joyride.
<
/p
<
/li
<
li
data-button=
"End"
<
h4End Stop
<
/h4
<
pThe tour is over. You can either go back to the previous stop or close it.
<
/p
<
/li
<
/ol
<
script$(document).ready(function() {
$(document).foundation('joyride', 'start');
})
<
/script
Try it »
Example Parsing
In the above example, we created two elements, each with its own ID. The two elements set the start and end positions of the joyride.
We are in the or element, add the data-joyride The property and .joyride-list class to create the joyride. You need to define it in the document header (in the section's header). On each list use element, and add to each element data-id="value" attribute. The attribute's value must be the same as the previous element's id. So the first feature tour element using id="first" must be consistent with the
If you don't have a stop id managed, a modal will be displayed.
Finally, Joyride needs to be initialized with JavaScript, with the code: $(document).foundation('joyride', 'start');