__('click to play the audio')
__('add to cart')
__('click to open the file')
-
+ __('click to flip')
*/
function FluidbookLinks(fluidbook) {
});
+ $(document).on(this.fluidbook.input.clickEvent, '[data-flipcard] > a', function () {
+ $(this).closest('[data-flipcard]').find('.flipcard').toggleClass('flipped');
+ return false;
+ });
+
new ClipboardJS('[data-clipboard-text]');
$(document).on(this.fluidbook.input.clickEvent, '[data-clipboard-text]', function () {
$this.fluidbook.tooltip.displayTooltip($this.fluidbook.l10n.__('copied!'));
opacity: 1;
}
}
+
+ &[data-flipcard] {
+ background-image: none !important;
+ perspective: 2000px;
+ position: relative;
+
+ > a {
+ position: absolute;
+ display: block;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ z-index: 1;
+ }
+
+ .flipcard {
+ width: 100%;
+ height: 100%;
+ position: absolute;
+ transition: transform 0.8s;
+ transform-style: preserve-3d;
+
+ &.flipped {
+ transform: rotateY(180deg);
+ }
+
+ > div {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ backface-visibility: hidden;
+
+ &.back {
+ transform: rotateY(180deg);
+ }
+
+ img {
+ width: 100%;
+ height: 100%
+ }
+ }
+ }
+ }
}
+
.link.contentLink {
z-index: 500;
position: absolute;
pointer-events: none;
- &.interactive{
+ &.interactive {
pointer-events: auto;
}
text-align: center;
position: relative;
- .svg-icon{
+ .svg-icon {
width: 20px;
position: absolute;
- top:11px;
- left:-11px;
+ top: 11px;
+ left: -11px;
}
&.noborder {
display: block;
margin: 0 0 10px 0;
- .svg-icon{
+ .svg-icon {
width: 20px;
margin-right: 12px;
vertical-align: text-bottom;