PluginProbe
Getwid – Gutenberg Blocks / 3.0.2
Getwid – Gutenberg Blocks v3.0.2
3.0.2 3.0.1 3.0.0 2.1.0 2.1.1 2.1.2 2.1.3 2.2.0 trunk 1.8.7 1.9.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.14 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9
getwid / assets / blocks / image-box / view.js

view.js in Getwid – Gutenberg Blocks 3.0.2, at assets/blocks/image-box/view.js

1 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (()=>{"use strict";const n={n:t=>{const e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},d:(t,e)=>{if(Array.isArray(e))for(var i=0;i<e.length;){var a=e[i++],o=e[i++];n.o(t,a)?0===o&&i++:0===o?Object.defineProperty(t,a,{enumerable:!0,value:e[i++]}):Object.defineProperty(t,a,{enumerable:!0,get:o})}else for(var a in e)n.o(e,a)&&!n.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})},o:(n,t)=>Object.hasOwn(n,t)},t=window.jQuery;var e=n.n(t);const i="wp-block-getwid-image-box";function a(){e()(`.${i}:not(.getwid-init)`).each((n,t)=>{const a=e()(t);a.addClass("getwid-init"),a.filter(`.getwid-animation.${i}`).on("mouseenter",function(){!function(n,t){const i=(()=>{const n=document.createElement("div").style,t={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd"};for(const e in t)if(e in n)return t[e];return"animationend"})(),a=t.animation||"",o=t.duration||"1s",r=t.delay||"0s";n.css({"animation-duration":o,"animation-delay":r,"-webkit-animation-delay":r}),n.addClass(`animated ${a}`).one(i,function(){e()(this).removeClass(`animated ${a}`)})}(e()(this).find(`.${i}__image-wrapper`),{animation:e()(this).attr("data-animation")})})})}e()(document).ready(()=>{e()(document.body).on("post-load",()=>{a()}),a()})})();