from.opacity = css.opacity;
}
to.opacity = 0;
+ } else if (animation.type === 'keephidden') {
+ from.display = 'none';
+ to.display = 'block';
+ to.visibility = 'visible';
+ if (css.opacity !== undefined) {
+ from.opacity = css.opacity;
+ } else {
+ from.opacity = 0;
+ }
+ to.opacity = 0;
} else if (animation.type === "unmask" || animation.type === 'reveal') {
if (animation.type === 'reveal') {
from.display = 'none';
var animateBookmarks = (this.fluidbook.settings.bookmarkBlinkOnPageChange == true);
var $this = this;
- var links = $(container).find(".link a.displayArea");
+ var links = $(container).find(".link a[data-animation]");
if (!this.fluidbook.mobilefirst.enabled) {
$(links).each(function () {
},
animateLink: function (link, additionalDelay) {
- if (!$(link).is('.displayArea')) {
- link = $(link).find('.displayArea');
+ if (!$(link).is('[data-animation]')) {
+ link = $(link).find('[data-animation]');
}
if (additionalDelay === undefined) {
additionalDelay = 0;
}
if (rect.top < $this.fluidbook.resize.hh) {
$(this).addClass('revealed');
- if ($(this).find('a.displayArea').length > 0) {
+ if ($(this).find('a[data-display-area!="none"]').length > 0) {
$this.fluidbook.links.animateLink(this, delay);
} else if ($(this).is('.multimedia.notinteractive')) {
var url = $(this).find('iframe').attr('src');
}
}
- &.displayArea:hover {
+ &[data-display-area="fill"]:hover {
background-color: @links-area-color;
mix-blend-mode: multiply;
display: block;
background-color: transparent;
- &.displayArea {
+ &[data-display-area="fill"]{
-webkit-tap-highlight-color: @links-area-color;
background-color: fadeout(@links-color, 99.999%);
border-radius: unit(@links-rounded-corners*2, px);