'-'
zhangwei
4 天以前 ddbf9504fc5faf6764fffa4e9263a3ad927331d8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* stylelint-disable-next-line scss/dollar-variable-colon-space-after */
$ripple-animation-transition-in:
  transform 0.4s cubic-bezier(0, 0, 0.2, 1),
  opacity 0.2s cubic-bezier(0, 0, 0.2, 1) !default;
$ripple-animation-transition-out: opacity 0.5s cubic-bezier(0, 0, 0.2, 1) !default;
$ripple-animation-visible-opacity: 0.25 !default;
 
.v-ripple {
  &__container {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    border-radius: inherit;
    contain: strict;
  }
 
  &__animation {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    background: currentcolor;
    border-radius: 50%;
    opacity: 0;
    will-change: transform, opacity;
 
    &--enter {
      opacity: 0;
      transition: none;
    }
 
    &--in {
      opacity: $ripple-animation-visible-opacity;
      transition: $ripple-animation-transition-in;
    }
 
    &--out {
      opacity: 0;
      transition: $ripple-animation-transition-out;
    }
  }
}