ripple effect on button-like widgets
new push button widget
This commit is contained in:
parent
e217a189cd
commit
48b6db0d9a
4 changed files with 92 additions and 7 deletions
|
|
@ -762,7 +762,7 @@ a {
|
|||
|
||||
/* BUTTONS */
|
||||
|
||||
.toggle-container {
|
||||
.toggle-container, .push-container {
|
||||
width:100rem;
|
||||
min-height: 65rem;
|
||||
flex-shrink: 0;
|
||||
|
|
@ -810,10 +810,26 @@ a {
|
|||
}
|
||||
&.on .light {
|
||||
background: $color-accent;
|
||||
animation: ripple .25s linear;
|
||||
animation-fill-mode:backwards;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.push {
|
||||
&.on .light {
|
||||
animation:none;
|
||||
}
|
||||
&:active .light {
|
||||
background: $color-accent;
|
||||
}
|
||||
&.ripple .light {
|
||||
animation:ripple 0.25s linear;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
.switch-container {
|
||||
// height: 100%;
|
||||
width:100rem;
|
||||
|
|
@ -882,6 +898,7 @@ a {
|
|||
&.on {
|
||||
&:after {
|
||||
background: $color-accent;
|
||||
animation:ripple 0.25s linear;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -889,6 +906,11 @@ a {
|
|||
}
|
||||
|
||||
|
||||
@keyframes ripple {
|
||||
/*scale the element to 250% to safely cover the entire link and fade it out*/
|
||||
0% {box-shadow: 0 0 0 0 rgba($color-accent,.5)}
|
||||
100% {box-shadow: 0 0 0 100rem transparent;}
|
||||
}
|
||||
|
||||
|
||||
/* XY */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue