Skip to content

Commit 667c1ba

Browse files
committed
multi keyframes
1 parent 6bb3254 commit 667c1ba

File tree

3 files changed

+60
-9
lines changed

3 files changed

+60
-9
lines changed

dist/angular-tooltips.css

+36
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-tooltips.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/angular-tooltips.scss

+23-8
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,31 @@ $tooltip-fast-transition: .15s;
88
$tooltip-slow-transition: .65s;
99
$tooltip-medium-transition: .35s;
1010

11+
@mixin opacity-transition($speed) {
12+
animation: animate-tooltip $speed;
13+
}
14+
@mixin border-radius($radius) {
15+
border-radius: $radius;
16+
}
17+
18+
@mixin keyframes($name) {
19+
@-webkit-keyframes #{$name} {
20+
@content;
21+
}
22+
@-moz-keyframes #{$name} {
23+
@content;
24+
}
25+
@-ms-keyframes #{$name} {
26+
@content;
27+
}
28+
@keyframes #{$name} {
29+
@content;
30+
}
31+
}
32+
1133
[tooltips] {
1234

13-
@keyframes animate-tooltip {
35+
@include keyframes(animate-tooltip) {
1436
0% {
1537

1638
opacity: 0;
@@ -37,13 +59,6 @@ $tooltip-medium-transition: .35s;
3759
}
3860
}
3961

40-
@mixin opacity-transition($speed) {
41-
animation: animate-tooltip $speed;
42-
}
43-
@mixin border-radius($radius) {
44-
border-radius: $radius;
45-
}
46-
4762
._large {
4863

4964
font-size: 1.5em;

0 commit comments

Comments
 (0)