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 / flipboxes-layout.js

flipboxes-layout.js in Cool Flipbox – Shortcode & Gutenberg Block 1.4, at assets/js/flipboxes-layout.js

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