diff --git a/bi-ui/src/assets/css/main.scss b/bi-ui/src/assets/css/main.scss index 1866252..e0537fe 100644 --- a/bi-ui/src/assets/css/main.scss +++ b/bi-ui/src/assets/css/main.scss @@ -189,12 +189,14 @@ .w-border-light-3 { position: relative; border: none !important; - animation-play-state: running; + animation-play-state: inherit; --border: .2em solid var(--w-main-dark-3); - --border-light-color: var(--w-main-light-3); + --border-light-color: #FFF9; --time: 5s; + + &::before { content: ''; @@ -287,7 +289,41 @@ border-radius: 1em; } + @property --data-num { + syntax: ""; + inherits: true; + initial-value: 0; + } + + .w-breathing { + --filter: brightness(110%); + --transform: scale(1.1); + --time: 1.3s; + --data-num: 0; + --data-num-to: 1; + animation: w-am-breathing var(--time) infinite linear; + animation-play-state: inherit; + } + + @keyframes w-am-breathing { + 0% { + filter: none; + transform: none; + + } + + 45% { + filter: var(--filter); + transform: var(--transform); + --data-num: var(--data-num-to); + } + + 90% { + filter: none; + transform: none; + } + } diff --git a/bi-ui/src/components/global/WEffectBreathing.vue b/bi-ui/src/components/global/WEffectBreathing.vue new file mode 100644 index 0000000..94761c7 --- /dev/null +++ b/bi-ui/src/components/global/WEffectBreathing.vue @@ -0,0 +1,5 @@ + diff --git a/bi-ui/src/components/global/WEffectLight.vue b/bi-ui/src/components/global/WEffectLight.vue index 6cbfbdb..003881e 100644 --- a/bi-ui/src/components/global/WEffectLight.vue +++ b/bi-ui/src/components/global/WEffectLight.vue @@ -1,50 +1,10 @@ - - \ No newline at end of file diff --git a/bi-ui/src/pages/test/components.vue b/bi-ui/src/pages/test/components.vue index 431b32a..28eded2 100644 --- a/bi-ui/src/pages/test/components.vue +++ b/bi-ui/src/pages/test/components.vue @@ -211,27 +211,90 @@ codeRef.setCode('new code');//设置代码 ` }}

呼吸灯效果

- -
-
- -
+
+ +
+
+ + +
+
+ + + + + +
+
+ +
+ +
+
+ +
+
+
+
+ +
+ +
+
{{ am ? '暂停' : '播放' }} + - {{ ` -
+ {{ ` +
+ +
- -
+ + +
- \{\{ am?'暂停':'播放' \}\}` }} + + + + + +
+
+ +
+ +
+
+ +
+
+
+
+ +
+ +
+
+
+ \{\{ am ? '暂停' : '播放' \}\}` }}

干扰动画效果

+ {{ am1 ? '暂停' : '播放' }}

加载动画效果

@@ -351,7 +414,7 @@ codeRef.setCode('new code');//设置代码
10rem = px
10em = px
-