PluginProbe
Cool Flipbox – Shortcode & Gutenberg Block / 1.4
Cool Flipbox – Shortcode & Gutenberg Block v1.4
trunk 1.4 1.5 1.6 1.6.2 1.7.1 1.8.3 1.9.0 1.9.1 1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.1
flip-boxes / assets / js / flipbox.js

flipbox.js in Cool Flipbox – Shortcode & Gutenberg Block 1.4, at assets/js/flipbox.js

37 lines 667 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 jQuery(document).ready(function($){
2 $('.flip').each(function (){
3 var effect=$(this).data('effect');
4 $(this).flip({
5 axis:effect,
6 trigger: 'hover'
7 });
8
9 });
10
11 $('.face a').on('touchstart',function(e){
12 e.stopPropagation();
13 })
14
15 $('.flip').each(function(){
16 $(this).on('touchstart', function(){
17 $(this).flip('toggle');
18 });
19 });
20
21
22 $('.flip[data-height="equal"]').each(function(){
23 var maxHeight = 0;
24
25 $('.cfb-section').each(function(){
26 if ($(this).height() > maxHeight) { maxHeight = $(this).height(); }
27 });
28
29 $('.flip[data-height="equal"] .cfb-section').height(maxHeight);
30
31 });
32
33 });
34
35
36
37