Initial Commit - NG UI
[osm/NG-UI.git] / src / assets / scss / mixins / _animation.scss
1 /*
2  Copyright 2020 TATA ELXSI
3
4  Licensed under the Apache License, Version 2.0 (the 'License');
5  you may not use this file except in compliance with the License.
6  You may obtain a copy of the License at
7
8     http://www.apache.org/licenses/LICENSE-2.0
9
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15
16  Author: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.in), BARATH KUMAR R (barath.r@tataelxsi.co.in)
17  */
18 /**
19  * @ file contains @mixin functions for animation property
20  * example for animation: @include animation(rotate 1s linear);
21  * example for keyframes: @include keyframes(rotate) {
22         0% { @include rotate(0); }
23         100% { @include rotate(359); }
24     }
25  */
26
27 // @mixin for animation properties
28 @mixin animation ($animation) {
29     -webkit-animation: #{$animation};
30     -moz-animation: #{$animation};
31     -ms-animation: #{$animation};
32     -o-animation: #{$animation};
33     animation: #{$animation};
34 }
35
36 // @mixin for keyframes properties
37 @mixin keyframes ($animation) {
38     @-webkit-keyframes #{$animation} {
39         @content;
40     }
41     @-moz-keyframes #{$animation} {
42         @content;
43     }
44     @-o-keyframes #{$animation} {
45         @content;
46     }
47     @keyframes #{$animation} {
48         @content;
49     }
50 }