PluginProbe
Depicter — Popup & Slider Builder / 1.5.2
Depicter — Popup & Slider Builder v1.5.2
4.8.1 trunk 1.0.0 1.1.0 1.1.2 1.1.4 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.5 1.3.8 1.5.0 1.5.1 1.5.2 1.5.5 1.6.0 1.6.1 1.6.2 1.7.0 All 76 releases
depicter / app / src / Document / Models / Common / Styles / Transition.php

Transition.php in Depicter — Popup & Slider Builder 1.5.2, at app/src/Document/Models/Common/Styles/Transition.php

37 lines 696 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Depicter\Document\Models\Common\Styles;
3
4 use Depicter\Document\CSS\Breakpoints;
5
6 class Transition extends States
7 {
8 /**
9 * @var string
10 */
11 public $timingFunction;
12
13 /**
14 * @var int
15 */
16 public $duration;
17
18 /**
19 * style name
20 */
21 const NAME = 'transition';
22
23 public function set( $css ) {
24 $devices = Breakpoints::names();
25 foreach ( $devices as $device ) {
26 if ( !empty( $this->{$device} ) ) {
27 if ( !empty( $this->{$device}->enable ) ) {
28 $duration = isset( $this->{$device}->duration ) ? $this->{$device}->duration : 0;
29 $css[ $device ][ self::NAME ] = "all " . $this->{$device}->timingFunction . ' ' . $duration . 's';
30 }
31 }
32 }
33
34 return $css;
35 }
36 }
37