Changeset 3471328
- Timestamp:
- 02/27/2026 08:03:01 PM (8 days ago)
- Location:
- blocks-animation
- Files:
-
- 12 edited
- 1 copied
-
tags/3.1.5 (copied) (copied from blocks-animation/trunk)
-
tags/3.1.5/blocks-animation.php (modified) (1 diff)
-
tags/3.1.5/build/animation/frontend.asset.php (modified) (1 diff)
-
tags/3.1.5/build/animation/frontend.js (modified) (1 diff)
-
tags/3.1.5/readme.md (modified) (1 diff)
-
tags/3.1.5/readme.txt (modified) (1 diff)
-
tags/3.1.5/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/blocks-animation.php (modified) (1 diff)
-
trunk/build/animation/frontend.asset.php (modified) (1 diff)
-
trunk/build/animation/frontend.js (modified) (1 diff)
-
trunk/readme.md (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
blocks-animation/tags/3.1.5/blocks-animation.php
r3418008 r3471328 11 11 * Plugin URI: https://github.com/Codeinwp/otter-blocks 12 12 * Description: Blocks Animation allows you to add CSS Animations to all of your Gutenberg blocks in the most elegent way. 13 * Version: 3.1. 413 * Version: 3.1.5 14 14 * Author: ThemeIsle 15 15 * Author URI: https://themeisle.com -
blocks-animation/tags/3.1.5/build/animation/frontend.asset.php
r3316314 r3471328 1 <?php return array('dependencies' => array(), 'version' => ' 85c87361b4be0dc88708');1 <?php return array('dependencies' => array(), 'version' => 'c44084e33dc17a73066a'); -
blocks-animation/tags/3.1.5/build/animation/frontend.js
r3316314 r3471328 1 !function(){const t=["none","bounce","flash","pulse","rubberBand","shakeX","shakeY","headShake","swing","tada","wobble","jello","heartBeat","hinge","jackInTheBox","backInDown","backInLeft","backInRight","backInUp","backOutDown","backOutLeft","backOutRight","backOutUp","bounceIn","bounceInDown","bounceInLeft","bounceInRight","bounceInUp","bounceOut","bounceOutDown","bounceOutLeft","bounceOutRight","bounceOutUp","fadeIn","fadeInDown","fadeInDownBig","fadeInLeft","fadeInLeftBig","fadeInRight","fadeInRightBig","fadeInUp","fadeInTopLeft","fadeInTopRight","fadeInBottomLeft","fadeInBottomRight","fadeOut","fadeOutDown","fadeOutDownBig","fadeOutLeft","fadeOutLeftBig","fadeOutRight","fadeOutRightBig","fadeOutUp","fadeOutUpBig","fadeOutTopLeft","fadeOutTopRight","fadeOutBottomRight","fadeOutBottomLeft","flip","flipInX","flipInY","flipOutX","flipOutY","lightSpeedInRight","lightSpeedInLeft","lightSpeedOutRight","lightSpeedOutLeft","rotateIn","rotateInDownLeft","rotateInDownRight","rotateInUpLeft","rotateInUpRight","rotateOut","rotateOutDownLeft","rotateOutDownRight","rotateOutUpLeft","rotateOutUpRight","slideInDown","slideInLeft","slideInRight","slideInUp","slideOutDown","slideOutLeft","slideOutRight","slideOutUp","zoomIn","zoomInDown","zoomInLeft","zoomInRight","zoomInUp","zoomOut","zoomOutDown","zoomOutLeft","zoomOutRight","zoomOutUp","rollIn","rollOut"],e=["backOutDown","backOutLeft","backOutRight","backOutUp","bounceOut","bounceOutDown","bounceOutLeft","bounceOutRight","bounceOutUp","fadeOut","fadeOutDown","fadeOutDownBig","fadeOutLeft","fadeOutLeftBig","fadeOutRight","fadeOutRightBig","fadeOutUp","fadeOutUpBig","fadeOutTopLeft","fadeOutTopRight","fadeOutBottomRight","fadeOutBottomLeft","flipOutX","flipOutY","lightSpeedOutRight","lightSpeedOutLeft","rotateOut","rotateOutDownLeft","rotateOutDownRight","rotateOutUpLeft","rotateOutUpRight","slideOutDown","slideOutLeft","slideOutRight","slideOutUp","zoomOut","zoomOutDown","zoomOutLeft","zoomOutRight","zoomOutUp","rollOut"],n=["none","delay-100ms","delay-200ms","delay-500ms","delay-1s","delay-2s","delay-3s","delay-4s","delay-5s"], a=["none","slow","slower","fast","faster"],o=t=>{const e=window.scrollY||window.pageYOffset,n=s(i(t)),a=t.getBoundingClientRect().top+e+n,o=e,d=e+window.innerHeight,u=a,f=a+t.clientHeight;return f>=o&&u<=d||u<=d&&f>=d||f>=o&&u<=o},i=t=>{let e=0;for(const n of t.classList.entries())if(n[1].includes("o-anim-offset-")){const t=n[1].replace("o-anim-offset-","");if(isNaN(t.charAt(0)))continue;e=t.endsWith("px")?parseFloat(t):t;break}return e},s=t=>{var e;return"string"==typeof t?(t=null!==(e=parseFloat(t))&&void 0!==e?e:0,t=Math.min(Math.max(t,0),100),t=window.innerHeight*(t/100)):"number"!=typeof t&&(t=0),t};window.addEventListener("load",(()=>{const d=document.querySelectorAll(".animated");(t=>{let e=[],n=[];for(const a of t){const t=a.classList;if(t.contains("o-anim-custom-delay")){let n;for(const e of t)if(e.includes("o-anim-value-delay-")){n=e;break}n&&e.push(n)}if(t.contains("o-anim-custom-speed")){let e;for(const n of t)if(n.includes("o-anim-value-speed-")){e=n;break}e&&n.push(e)}}if(e=[...new Set(e)],n=[...new Set(n)],0<e.length||0<n.length){const t=document.createElement("style");t.id="o-anim-custom-values";const a=t=>t.replace(/([!"#$%&'()*+,.\/:;<=>?@[\\\]^`{|}~])/g,"\\$1");t.innerHTML=e.reduce(((t,e)=>{const n=e.replace("o-anim-value-delay-","");return t+`.animated.${a(e)} { animation-delay: ${n}; -webkit-animation-delay: ${n}; }`}),"")+"\n"+n.reduce(((t,e)=>{const n=e.replace("o-anim-value-speed-","");return t+`.animated.${a(e)} { animation-duration: ${n}; -webkit-animation-duration: ${n}; }`}),""),document.body.appendChild(t)}})(d);for(const i of d){if(classes=i.classList,i.animationClasses=[],!o(i)){const e=t.find((t=>Array.from(classes).find((e=>e===t)))),o=n.find((t=>Array.from(classes).find((e=>e===t)))),s=a.find((t=>Array.from(classes).find((e=>e===t))));e&&(i.animationClasses.push(e),i.classList.remove(e)),o&&(i.animationClasses.push(o),i.classList.remove(o)),s&&(i.animationClasses.push(s),i.classList.remove(s)),i.classList.add("hidden-animated")}if(classes.add("o-anim-ready"),e.forEach((t=>{i.className.includes(t)&&i.addEventListener("animationend",(()=>{i.classList.remove(t)}))})),classes.contains("o-anim-hover")){i.classList.remove("hidden-animated"),i.classList.remove("animated");const{animationName:t}=i.style;i.style.animationName="none",i.addEventListener("mouseenter",(()=>{i.classList.add("animated"),i.style.animationName=t}))}i.addEventListener("animationend",(()=>{i.classList.remove("animated")}))}const u=[];for(const t of d)t.animationClasses&&0<t.animationClasses.length&&u.push({element:t,triggerOffset:i(t)});window.addEventListener("scroll",(()=>{requestAnimationFrame((()=>{const t=[];for(const e of u){const{element:n,triggerOffset:a}=e,{top:o}=n.getBoundingClientRect();o+s(a)<=.95*window.innerHeight&&0<o&&(n.animationClasses.forEach((t=>n.classList.add(t))),n.classList.remove("hidden-animated"),delete n.animationClasses,t.push(e))}t.forEach((t=>{const e=u.indexOf(t);u.splice(e,1)}))}))}))}))}();1 !function(){const t=["none","bounce","flash","pulse","rubberBand","shakeX","shakeY","headShake","swing","tada","wobble","jello","heartBeat","hinge","jackInTheBox","backInDown","backInLeft","backInRight","backInUp","backOutDown","backOutLeft","backOutRight","backOutUp","bounceIn","bounceInDown","bounceInLeft","bounceInRight","bounceInUp","bounceOut","bounceOutDown","bounceOutLeft","bounceOutRight","bounceOutUp","fadeIn","fadeInDown","fadeInDownBig","fadeInLeft","fadeInLeftBig","fadeInRight","fadeInRightBig","fadeInUp","fadeInTopLeft","fadeInTopRight","fadeInBottomLeft","fadeInBottomRight","fadeOut","fadeOutDown","fadeOutDownBig","fadeOutLeft","fadeOutLeftBig","fadeOutRight","fadeOutRightBig","fadeOutUp","fadeOutUpBig","fadeOutTopLeft","fadeOutTopRight","fadeOutBottomRight","fadeOutBottomLeft","flip","flipInX","flipInY","flipOutX","flipOutY","lightSpeedInRight","lightSpeedInLeft","lightSpeedOutRight","lightSpeedOutLeft","rotateIn","rotateInDownLeft","rotateInDownRight","rotateInUpLeft","rotateInUpRight","rotateOut","rotateOutDownLeft","rotateOutDownRight","rotateOutUpLeft","rotateOutUpRight","slideInDown","slideInLeft","slideInRight","slideInUp","slideOutDown","slideOutLeft","slideOutRight","slideOutUp","zoomIn","zoomInDown","zoomInLeft","zoomInRight","zoomInUp","zoomOut","zoomOutDown","zoomOutLeft","zoomOutRight","zoomOutUp","rollIn","rollOut"],e=["backOutDown","backOutLeft","backOutRight","backOutUp","bounceOut","bounceOutDown","bounceOutLeft","bounceOutRight","bounceOutUp","fadeOut","fadeOutDown","fadeOutDownBig","fadeOutLeft","fadeOutLeftBig","fadeOutRight","fadeOutRightBig","fadeOutUp","fadeOutUpBig","fadeOutTopLeft","fadeOutTopRight","fadeOutBottomRight","fadeOutBottomLeft","flipOutX","flipOutY","lightSpeedOutRight","lightSpeedOutLeft","rotateOut","rotateOutDownLeft","rotateOutDownRight","rotateOutUpLeft","rotateOutUpRight","slideOutDown","slideOutLeft","slideOutRight","slideOutUp","zoomOut","zoomOutDown","zoomOutLeft","zoomOutRight","zoomOutUp","rollOut"],n=["none","delay-100ms","delay-200ms","delay-500ms","delay-1s","delay-2s","delay-3s","delay-4s","delay-5s"],o=["none","slow","slower","fast","faster"],a=[];let i=!1;const s=i=>{if(i.classList.contains("o-anim-ready"))return;const s=i.classList;if(i.animationClasses=[],!d(i)){const e=t.find((t=>Array.from(s).find((e=>e===t)))),a=n.find((t=>Array.from(s).find((e=>e===t)))),d=o.find((t=>Array.from(s).find((e=>e===t))));e&&(i.animationClasses.push(e),i.classList.remove(e)),a&&(i.animationClasses.push(a),i.classList.remove(a)),d&&(i.animationClasses.push(d),i.classList.remove(d)),i.classList.add("hidden-animated")}if(s.add("o-anim-ready"),e.forEach((t=>{i.className.includes(t)&&i.addEventListener("animationend",(()=>{i.classList.remove(t)}),{once:!0})})),s.contains("o-anim-hover")){i.classList.remove("hidden-animated"),i.classList.remove("animated");const{animationName:t}=i.style;i.style.animationName="none",i.addEventListener("mouseenter",(()=>{i.classList.add("animated"),i.style.animationName=t}))}i.addEventListener("animationend",(()=>{i.classList.remove("animated")})),i.animationClasses&&0<i.animationClasses.length&&a.push({element:i,triggerOffset:f(i)})},d=t=>{const e=window.scrollY||window.pageYOffset,n=l(f(t)),o=t.getBoundingClientRect().top+e+n,a=e,i=e+window.innerHeight,s=o,d=o+t.clientHeight;return d>=a&&s<=i||s<=i&&d>=i||d>=a&&s<=a},u=t=>{let e=[],n=[];for(const o of t){const t=o.classList;if(t.contains("o-anim-custom-delay")){let n;for(const e of t)if(e.includes("o-anim-value-delay-")){n=e;break}n&&e.push(n)}if(t.contains("o-anim-custom-speed")){let e;for(const n of t)if(n.includes("o-anim-value-speed-")){e=n;break}e&&n.push(e)}}if(e=[...new Set(e)],n=[...new Set(n)],0<e.length||0<n.length){const t=document.createElement("style");t.id="o-anim-custom-values";const o=t=>t.replace(/([!"#$%&'()*+,.\/:;<=>?@[\\\]^`{|}~])/g,"\\$1");t.innerHTML=e.reduce(((t,e)=>{const n=e.replace("o-anim-value-delay-","");return t+`.animated.${o(e)} { animation-delay: ${n}; -webkit-animation-delay: ${n}; }`}),"")+"\n"+n.reduce(((t,e)=>{const n=e.replace("o-anim-value-speed-","");return t+`.animated.${o(e)} { animation-duration: ${n}; -webkit-animation-duration: ${n}; }`}),""),document.body.appendChild(t)}},f=t=>{let e=0;for(const n of t.classList.entries())if(n[1].includes("o-anim-offset-")){const t=n[1].replace("o-anim-offset-","");if(isNaN(t.charAt(0)))continue;e=t.endsWith("px")?parseFloat(t):t;break}return e},l=t=>{var e;return"string"==typeof t?(t=null!==(e=parseFloat(t))&&void 0!==e?e:0,t=Math.min(Math.max(t,0),100),t=window.innerHeight*(t/100)):"number"!=typeof t&&(t=0),t};document.querySelectorAll(".wp-lightbox-container").forEach((t=>{t.addEventListener("click",(()=>{(()=>{const t=document.querySelectorAll(".animated:not(.o-anim-ready)");if(0!==t.length){u(t);for(const e of t)s(e)}})()}))})),window.addEventListener("load",(()=>{const t=document.querySelectorAll(".animated");u(t);for(const e of t)s(e);i||(window.addEventListener("scroll",(()=>{requestAnimationFrame((()=>{const t=[];for(const e of a){const{element:n,triggerOffset:o}=e,{top:a}=n.getBoundingClientRect();a+l(o)<=.95*window.innerHeight&&0<a&&(n.animationClasses.forEach((t=>n.classList.add(t))),n.classList.remove("hidden-animated"),delete n.animationClasses,t.push(e))}t.forEach((t=>{const e=a.indexOf(t);a.splice(e,1)}))}))})),i=!0)}))}(); -
blocks-animation/tags/3.1.5/readme.md
r3418008 r3471328 5 5 **Tested up to:** 6.9 6 6 **Requires PHP:** 5.4 7 **Stable tag:** 3.1. 47 **Stable tag:** 3.1.5 8 8 **License:** GPLv3 9 9 **License URI:** https://www.gnu.org/licenses/gpl-3.0.en.html -
blocks-animation/tags/3.1.5/readme.txt
r3418008 r3471328 5 5 Tested up to: 6.9 6 6 Requires PHP: 5.4 7 Stable tag: 3.1. 47 Stable tag: 3.1.5 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.en.html -
blocks-animation/tags/3.1.5/vendor/composer/installed.php
r3418008 r3471328 2 2 'root' => array( 3 3 'name' => 'codeinwp/blocks-animation', 4 'pretty_version' => '3.1. 4',5 'version' => '3.1. 4.0',4 'pretty_version' => '3.1.5', 5 'version' => '3.1.5.0', 6 6 'reference' => null, 7 7 'type' => 'wordpress-plugin', … … 12 12 'versions' => array( 13 13 'codeinwp/blocks-animation' => array( 14 'pretty_version' => '3.1. 4',15 'version' => '3.1. 4.0',14 'pretty_version' => '3.1.5', 15 'version' => '3.1.5.0', 16 16 'reference' => null, 17 17 'type' => 'wordpress-plugin', -
blocks-animation/trunk/blocks-animation.php
r3418008 r3471328 11 11 * Plugin URI: https://github.com/Codeinwp/otter-blocks 12 12 * Description: Blocks Animation allows you to add CSS Animations to all of your Gutenberg blocks in the most elegent way. 13 * Version: 3.1. 413 * Version: 3.1.5 14 14 * Author: ThemeIsle 15 15 * Author URI: https://themeisle.com -
blocks-animation/trunk/build/animation/frontend.asset.php
r3316314 r3471328 1 <?php return array('dependencies' => array(), 'version' => ' 85c87361b4be0dc88708');1 <?php return array('dependencies' => array(), 'version' => 'c44084e33dc17a73066a'); -
blocks-animation/trunk/build/animation/frontend.js
r3316314 r3471328 1 !function(){const t=["none","bounce","flash","pulse","rubberBand","shakeX","shakeY","headShake","swing","tada","wobble","jello","heartBeat","hinge","jackInTheBox","backInDown","backInLeft","backInRight","backInUp","backOutDown","backOutLeft","backOutRight","backOutUp","bounceIn","bounceInDown","bounceInLeft","bounceInRight","bounceInUp","bounceOut","bounceOutDown","bounceOutLeft","bounceOutRight","bounceOutUp","fadeIn","fadeInDown","fadeInDownBig","fadeInLeft","fadeInLeftBig","fadeInRight","fadeInRightBig","fadeInUp","fadeInTopLeft","fadeInTopRight","fadeInBottomLeft","fadeInBottomRight","fadeOut","fadeOutDown","fadeOutDownBig","fadeOutLeft","fadeOutLeftBig","fadeOutRight","fadeOutRightBig","fadeOutUp","fadeOutUpBig","fadeOutTopLeft","fadeOutTopRight","fadeOutBottomRight","fadeOutBottomLeft","flip","flipInX","flipInY","flipOutX","flipOutY","lightSpeedInRight","lightSpeedInLeft","lightSpeedOutRight","lightSpeedOutLeft","rotateIn","rotateInDownLeft","rotateInDownRight","rotateInUpLeft","rotateInUpRight","rotateOut","rotateOutDownLeft","rotateOutDownRight","rotateOutUpLeft","rotateOutUpRight","slideInDown","slideInLeft","slideInRight","slideInUp","slideOutDown","slideOutLeft","slideOutRight","slideOutUp","zoomIn","zoomInDown","zoomInLeft","zoomInRight","zoomInUp","zoomOut","zoomOutDown","zoomOutLeft","zoomOutRight","zoomOutUp","rollIn","rollOut"],e=["backOutDown","backOutLeft","backOutRight","backOutUp","bounceOut","bounceOutDown","bounceOutLeft","bounceOutRight","bounceOutUp","fadeOut","fadeOutDown","fadeOutDownBig","fadeOutLeft","fadeOutLeftBig","fadeOutRight","fadeOutRightBig","fadeOutUp","fadeOutUpBig","fadeOutTopLeft","fadeOutTopRight","fadeOutBottomRight","fadeOutBottomLeft","flipOutX","flipOutY","lightSpeedOutRight","lightSpeedOutLeft","rotateOut","rotateOutDownLeft","rotateOutDownRight","rotateOutUpLeft","rotateOutUpRight","slideOutDown","slideOutLeft","slideOutRight","slideOutUp","zoomOut","zoomOutDown","zoomOutLeft","zoomOutRight","zoomOutUp","rollOut"],n=["none","delay-100ms","delay-200ms","delay-500ms","delay-1s","delay-2s","delay-3s","delay-4s","delay-5s"], a=["none","slow","slower","fast","faster"],o=t=>{const e=window.scrollY||window.pageYOffset,n=s(i(t)),a=t.getBoundingClientRect().top+e+n,o=e,d=e+window.innerHeight,u=a,f=a+t.clientHeight;return f>=o&&u<=d||u<=d&&f>=d||f>=o&&u<=o},i=t=>{let e=0;for(const n of t.classList.entries())if(n[1].includes("o-anim-offset-")){const t=n[1].replace("o-anim-offset-","");if(isNaN(t.charAt(0)))continue;e=t.endsWith("px")?parseFloat(t):t;break}return e},s=t=>{var e;return"string"==typeof t?(t=null!==(e=parseFloat(t))&&void 0!==e?e:0,t=Math.min(Math.max(t,0),100),t=window.innerHeight*(t/100)):"number"!=typeof t&&(t=0),t};window.addEventListener("load",(()=>{const d=document.querySelectorAll(".animated");(t=>{let e=[],n=[];for(const a of t){const t=a.classList;if(t.contains("o-anim-custom-delay")){let n;for(const e of t)if(e.includes("o-anim-value-delay-")){n=e;break}n&&e.push(n)}if(t.contains("o-anim-custom-speed")){let e;for(const n of t)if(n.includes("o-anim-value-speed-")){e=n;break}e&&n.push(e)}}if(e=[...new Set(e)],n=[...new Set(n)],0<e.length||0<n.length){const t=document.createElement("style");t.id="o-anim-custom-values";const a=t=>t.replace(/([!"#$%&'()*+,.\/:;<=>?@[\\\]^`{|}~])/g,"\\$1");t.innerHTML=e.reduce(((t,e)=>{const n=e.replace("o-anim-value-delay-","");return t+`.animated.${a(e)} { animation-delay: ${n}; -webkit-animation-delay: ${n}; }`}),"")+"\n"+n.reduce(((t,e)=>{const n=e.replace("o-anim-value-speed-","");return t+`.animated.${a(e)} { animation-duration: ${n}; -webkit-animation-duration: ${n}; }`}),""),document.body.appendChild(t)}})(d);for(const i of d){if(classes=i.classList,i.animationClasses=[],!o(i)){const e=t.find((t=>Array.from(classes).find((e=>e===t)))),o=n.find((t=>Array.from(classes).find((e=>e===t)))),s=a.find((t=>Array.from(classes).find((e=>e===t))));e&&(i.animationClasses.push(e),i.classList.remove(e)),o&&(i.animationClasses.push(o),i.classList.remove(o)),s&&(i.animationClasses.push(s),i.classList.remove(s)),i.classList.add("hidden-animated")}if(classes.add("o-anim-ready"),e.forEach((t=>{i.className.includes(t)&&i.addEventListener("animationend",(()=>{i.classList.remove(t)}))})),classes.contains("o-anim-hover")){i.classList.remove("hidden-animated"),i.classList.remove("animated");const{animationName:t}=i.style;i.style.animationName="none",i.addEventListener("mouseenter",(()=>{i.classList.add("animated"),i.style.animationName=t}))}i.addEventListener("animationend",(()=>{i.classList.remove("animated")}))}const u=[];for(const t of d)t.animationClasses&&0<t.animationClasses.length&&u.push({element:t,triggerOffset:i(t)});window.addEventListener("scroll",(()=>{requestAnimationFrame((()=>{const t=[];for(const e of u){const{element:n,triggerOffset:a}=e,{top:o}=n.getBoundingClientRect();o+s(a)<=.95*window.innerHeight&&0<o&&(n.animationClasses.forEach((t=>n.classList.add(t))),n.classList.remove("hidden-animated"),delete n.animationClasses,t.push(e))}t.forEach((t=>{const e=u.indexOf(t);u.splice(e,1)}))}))}))}))}();1 !function(){const t=["none","bounce","flash","pulse","rubberBand","shakeX","shakeY","headShake","swing","tada","wobble","jello","heartBeat","hinge","jackInTheBox","backInDown","backInLeft","backInRight","backInUp","backOutDown","backOutLeft","backOutRight","backOutUp","bounceIn","bounceInDown","bounceInLeft","bounceInRight","bounceInUp","bounceOut","bounceOutDown","bounceOutLeft","bounceOutRight","bounceOutUp","fadeIn","fadeInDown","fadeInDownBig","fadeInLeft","fadeInLeftBig","fadeInRight","fadeInRightBig","fadeInUp","fadeInTopLeft","fadeInTopRight","fadeInBottomLeft","fadeInBottomRight","fadeOut","fadeOutDown","fadeOutDownBig","fadeOutLeft","fadeOutLeftBig","fadeOutRight","fadeOutRightBig","fadeOutUp","fadeOutUpBig","fadeOutTopLeft","fadeOutTopRight","fadeOutBottomRight","fadeOutBottomLeft","flip","flipInX","flipInY","flipOutX","flipOutY","lightSpeedInRight","lightSpeedInLeft","lightSpeedOutRight","lightSpeedOutLeft","rotateIn","rotateInDownLeft","rotateInDownRight","rotateInUpLeft","rotateInUpRight","rotateOut","rotateOutDownLeft","rotateOutDownRight","rotateOutUpLeft","rotateOutUpRight","slideInDown","slideInLeft","slideInRight","slideInUp","slideOutDown","slideOutLeft","slideOutRight","slideOutUp","zoomIn","zoomInDown","zoomInLeft","zoomInRight","zoomInUp","zoomOut","zoomOutDown","zoomOutLeft","zoomOutRight","zoomOutUp","rollIn","rollOut"],e=["backOutDown","backOutLeft","backOutRight","backOutUp","bounceOut","bounceOutDown","bounceOutLeft","bounceOutRight","bounceOutUp","fadeOut","fadeOutDown","fadeOutDownBig","fadeOutLeft","fadeOutLeftBig","fadeOutRight","fadeOutRightBig","fadeOutUp","fadeOutUpBig","fadeOutTopLeft","fadeOutTopRight","fadeOutBottomRight","fadeOutBottomLeft","flipOutX","flipOutY","lightSpeedOutRight","lightSpeedOutLeft","rotateOut","rotateOutDownLeft","rotateOutDownRight","rotateOutUpLeft","rotateOutUpRight","slideOutDown","slideOutLeft","slideOutRight","slideOutUp","zoomOut","zoomOutDown","zoomOutLeft","zoomOutRight","zoomOutUp","rollOut"],n=["none","delay-100ms","delay-200ms","delay-500ms","delay-1s","delay-2s","delay-3s","delay-4s","delay-5s"],o=["none","slow","slower","fast","faster"],a=[];let i=!1;const s=i=>{if(i.classList.contains("o-anim-ready"))return;const s=i.classList;if(i.animationClasses=[],!d(i)){const e=t.find((t=>Array.from(s).find((e=>e===t)))),a=n.find((t=>Array.from(s).find((e=>e===t)))),d=o.find((t=>Array.from(s).find((e=>e===t))));e&&(i.animationClasses.push(e),i.classList.remove(e)),a&&(i.animationClasses.push(a),i.classList.remove(a)),d&&(i.animationClasses.push(d),i.classList.remove(d)),i.classList.add("hidden-animated")}if(s.add("o-anim-ready"),e.forEach((t=>{i.className.includes(t)&&i.addEventListener("animationend",(()=>{i.classList.remove(t)}),{once:!0})})),s.contains("o-anim-hover")){i.classList.remove("hidden-animated"),i.classList.remove("animated");const{animationName:t}=i.style;i.style.animationName="none",i.addEventListener("mouseenter",(()=>{i.classList.add("animated"),i.style.animationName=t}))}i.addEventListener("animationend",(()=>{i.classList.remove("animated")})),i.animationClasses&&0<i.animationClasses.length&&a.push({element:i,triggerOffset:f(i)})},d=t=>{const e=window.scrollY||window.pageYOffset,n=l(f(t)),o=t.getBoundingClientRect().top+e+n,a=e,i=e+window.innerHeight,s=o,d=o+t.clientHeight;return d>=a&&s<=i||s<=i&&d>=i||d>=a&&s<=a},u=t=>{let e=[],n=[];for(const o of t){const t=o.classList;if(t.contains("o-anim-custom-delay")){let n;for(const e of t)if(e.includes("o-anim-value-delay-")){n=e;break}n&&e.push(n)}if(t.contains("o-anim-custom-speed")){let e;for(const n of t)if(n.includes("o-anim-value-speed-")){e=n;break}e&&n.push(e)}}if(e=[...new Set(e)],n=[...new Set(n)],0<e.length||0<n.length){const t=document.createElement("style");t.id="o-anim-custom-values";const o=t=>t.replace(/([!"#$%&'()*+,.\/:;<=>?@[\\\]^`{|}~])/g,"\\$1");t.innerHTML=e.reduce(((t,e)=>{const n=e.replace("o-anim-value-delay-","");return t+`.animated.${o(e)} { animation-delay: ${n}; -webkit-animation-delay: ${n}; }`}),"")+"\n"+n.reduce(((t,e)=>{const n=e.replace("o-anim-value-speed-","");return t+`.animated.${o(e)} { animation-duration: ${n}; -webkit-animation-duration: ${n}; }`}),""),document.body.appendChild(t)}},f=t=>{let e=0;for(const n of t.classList.entries())if(n[1].includes("o-anim-offset-")){const t=n[1].replace("o-anim-offset-","");if(isNaN(t.charAt(0)))continue;e=t.endsWith("px")?parseFloat(t):t;break}return e},l=t=>{var e;return"string"==typeof t?(t=null!==(e=parseFloat(t))&&void 0!==e?e:0,t=Math.min(Math.max(t,0),100),t=window.innerHeight*(t/100)):"number"!=typeof t&&(t=0),t};document.querySelectorAll(".wp-lightbox-container").forEach((t=>{t.addEventListener("click",(()=>{(()=>{const t=document.querySelectorAll(".animated:not(.o-anim-ready)");if(0!==t.length){u(t);for(const e of t)s(e)}})()}))})),window.addEventListener("load",(()=>{const t=document.querySelectorAll(".animated");u(t);for(const e of t)s(e);i||(window.addEventListener("scroll",(()=>{requestAnimationFrame((()=>{const t=[];for(const e of a){const{element:n,triggerOffset:o}=e,{top:a}=n.getBoundingClientRect();a+l(o)<=.95*window.innerHeight&&0<a&&(n.animationClasses.forEach((t=>n.classList.add(t))),n.classList.remove("hidden-animated"),delete n.animationClasses,t.push(e))}t.forEach((t=>{const e=a.indexOf(t);a.splice(e,1)}))}))})),i=!0)}))}(); -
blocks-animation/trunk/readme.md
r3418008 r3471328 5 5 **Tested up to:** 6.9 6 6 **Requires PHP:** 5.4 7 **Stable tag:** 3.1. 47 **Stable tag:** 3.1.5 8 8 **License:** GPLv3 9 9 **License URI:** https://www.gnu.org/licenses/gpl-3.0.en.html -
blocks-animation/trunk/readme.txt
r3418008 r3471328 5 5 Tested up to: 6.9 6 6 Requires PHP: 5.4 7 Stable tag: 3.1. 47 Stable tag: 3.1.5 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.en.html -
blocks-animation/trunk/vendor/composer/installed.php
r3418008 r3471328 2 2 'root' => array( 3 3 'name' => 'codeinwp/blocks-animation', 4 'pretty_version' => '3.1. 4',5 'version' => '3.1. 4.0',4 'pretty_version' => '3.1.5', 5 'version' => '3.1.5.0', 6 6 'reference' => null, 7 7 'type' => 'wordpress-plugin', … … 12 12 'versions' => array( 13 13 'codeinwp/blocks-animation' => array( 14 'pretty_version' => '3.1. 4',15 'version' => '3.1. 4.0',14 'pretty_version' => '3.1.5', 15 'version' => '3.1.5.0', 16 16 'reference' => null, 17 17 'type' => 'wordpress-plugin',
Note: See TracChangeset
for help on using the changeset viewer.