return false;
});
+ $(document).on('mouseenter', '#links a.image_rollover', function () {
+ console.log(this);
+ var id = $(this).closest('[data-id]').data('id');
+ console.log(id);
+ var iid = 'i_' + id;
+ $this.rolloverEnter(iid);
+ });
+
+ $(document).on('mouseleave', '#links a.image_rollover', function () {
+ var id = $(this).closest('[data-id]').data('id');
+ var iid = 'i_' + id;
+ $this.rolloverLeave(iid);
+ });
+
$(this.fluidbook).on('fluidbook.zoom.in.end', function () {
$this.zoomLinkReset(true);
return true;
.css({width: iw, height: ih, transform: 'scale(' + (1 / $this.fluidbook.resize.bookScale) + ')'});
});
},
+
+ rolloverEnter: function (iid) {
+ console.log('enter',iid);
+ var e = $('[data-id="' + iid + '"]');
+ e.addClass('animaterollover');
+ },
+
+ rolloverLeave: function (iid) {
+ console.log('leave',iid);
+ var e = $('[data-id="' + iid + '"]');
+ e.removeClass('animaterollover');
+ }
}
font-style: normal;
}
+/* Links anims rollovers */
+@keyframes enterupanddown {
+ 0% {
+ margin-top: 0px;
+ }
+ 50% {
+ margin-top: -40px;
+ }
+ 100% {
+ margin-top: 0px;
+ }
+
+}
+
+[data-rollover="upanddown"] {
+ &.animaterollover {
+ animation-duration: 800ms;
+ animation-name: enterupanddown;
+ animation-timing-function: ease-out;
+ }
+}
+
@import "additional.less";