Flip This!
Front One - Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh.
Back of Card 1
Here's some text on the back of the card.
In this case the back content is defined in javascript.
Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh.
Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh.
Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh.
In this more generic case the back content is contained in the html so that it may be populated easily using javascript tempalting. Then the back element from the html is assigned to a variable when the flippant js is called.
document.addEventListener('click', function(e) {
if (e.target.classList.contains('flippant-open')) {
e.preventDefault()
var flipper = e.target.parentNode
var card = e.target.parentNode.parentNode
// var back_content = card.querySelector('p').innerText
// var back_content = card.getElementById('back').innerHTML
var myDiv = card.getElementsByTagName('div')
var back_content = myDiv[1].innerHTML
var back
if (e.target.classList.contains('card')) {
back = flip(flipper, back_content)
} else {
back = flip(flipper, back_content, 'modal')
}
back.addEventListener('click', function(e) {
if (e.target.classList.contains('flippant-close')) {
back.close(back, 'close')
}
})
}
})
Front One - Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh.
Here's some text on the back of the card.
Front Two - Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh.
Front Two B - Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh.
Here's some text on the back of the card.
Front three - Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh.
Here's some text on the back of the card.
Simple Button
Success Btn
Alert Btn
Secondary Btn
A whole kitchen sink of goodies comes with Foundation. Check out the docs to see them all, along with details on making them your own.
Go to Foundation Docs