PluginProbe
Social Share Buttons / 1.5
Social Share Buttons v1.5
trunk 0.9 1.0 1.1 1.1.1 1.1.2 1.10 1.11 1.12 1.15 1.16 1.17 1.18 1.19 1.2 1.20 1.3 1.30 1.4 1.5 1.6 1.7 1.8 1.9
share-button / classes / styles / _roundflip-style.php

_roundflip-style.php in Social Share Buttons 1.5, at classes/styles/_roundflip-style.php

54 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace MBSocial;
3 defined('ABSPATH') or die('No direct access permitted');
4
5 roundFlipStyle::registerStyle();
6
7 class roundFlipStyle extends roundStyle
8 {
9
10 public $class = 'roundflip single-meta';
11 public $name = 'roundflip';
12 public $description = " Round Buttons with Flip Hover Effect ";
13
14
15 public function mainCSS()
16 {
17 parent::mainCSS();
18
19 $css = array(
20 'transition' => 'all .2s linear',
21 'width' => '100%',
22 'height' => '100%',
23 'position' => 'absolute',
24 'transform' => 'translateY(100%)',
25 'display' => 'flex',
26 );
27
28 $css_hover = array(
29 'bottom' => '0',
30
31 );
32
33
34 $this->addCSS($css, '', 'mb-label');
35 $this->addCSS($css, '', 'mb-share-count');
36
37 $this->addCSS('bottom', '0', 'mb-label', 'hover');
38 $this->addCSS('bottom', '0', 'mb-share-count','hover');
39
40 $this->addCSS('transform', 'translateY(0)', 'mb-label', 'hover');
41 $this->addCSS('transform', 'translateY(0)', 'mb-share-count','hover');
42
43 $this->addCSS('transform', 'translateY(-100%)', 'mb-icon-wrapper', 'hover');
44 $this->addCSS('display', 'flex', 'mb-icon-wrapper', 'hover');
45 $this->addCSS('transition', 'all .2s ease-in-out', 'mb-icon-wrapper');
46
47 $this->addCSS('transform', 'none', 'maxbutton-social', 'hover');
48 $this->addCSS('overflow', 'hidden', 'maxbutton-social');
49
50
51 }
52
53 }
54