Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsk-data-view-scene
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2ddd543e
authored
Jul 11, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 提交动画
1 parent
f39c5a77
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
13 deletions
src/views/energyCar/RightModel.vue
src/views/energyCar/RightModel.vue
View file @
2ddd543
...
@@ -27,9 +27,18 @@
...
@@ -27,9 +27,18 @@
</div>
</div>
</
template
>
</
template
>
<div
class=
"chain-line-box flex y-center"
>
<div
class=
"chain-line-box flex y-center"
>
<div
class=
"column-line"
></div>
<div
class=
"column-line"
>
<div
class=
"column-line"
></div>
<div
class=
"arrow"
></div>
<div
class=
"column-line"
></div>
<div
class=
"arrow"
></div>
</div>
<div
class=
"column-line"
>
<div
class=
"arrow"
></div>
<div
class=
"arrow"
></div>
</div>
<div
class=
"column-line"
>
<div
class=
"arrow"
></div>
<div
class=
"arrow"
></div>
</div>
<div
class=
"row-line y-center"
>
<div
class=
"row-line y-center"
>
<div
class=
"icon flex"
>
<div
class=
"icon flex"
>
<div
class=
"text"
>
数据应用
</div>
<div
class=
"text"
>
数据应用
</div>
...
@@ -114,37 +123,59 @@ export default {
...
@@ -114,37 +123,59 @@ export default {
height
:
22.88vh
;
height
:
22.88vh
;
padding-left
:
85px
;
padding-left
:
85px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
gap
:
0
129
px
;
gap
:
0
60
px
;
.column-line
{
.column-line
{
width
:
69
px
;
width
:
138
px
;
height
:
calc
(
100%
-
2vh
);
height
:
calc
(
100%
-
2vh
);
position
:
relative
;
position
:
relative
;
border-right
:
4px
dashed
#56fefe
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
&::before,
&::before,
&::after
{
&::after
{
position
:
absolute
;
left
:
50%
;
transform
:
translateX
(
-50%
);
content
:
''
;
content
:
''
;
height
:
50%
;
width
:
4px
;
background
:
repeating-linear-gradient
(
to
bottom
,
transparent
0%
50%
,
#56fefe
50%
51%
);
background-size
:
1px
10px
;
}
&
::before
{
top
:
0
;
animation
:
move-dots-y
4s
linear
infinite
;
}
&
::after
{
bottom
:
0
;
animation
:
move-dots-y
4s
linear
infinite
;
animation-direction
:
reverse
;
}
.arrow
{
position
:
absolute
;
position
:
absolute
;
width
:
40px
;
width
:
40px
;
height
:
3.85vh
;
height
:
3.85vh
;
background-image
:
url('../../assets/images/factor/right-arrow.png')
;
background-image
:
url('../../assets/images/factor/right-arrow.png')
;
background-size
:
cover
;
background-size
:
cover
;
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
right
:
-22px
;
left
:
50%
;
}
transform
:
translateX
(
-50%
);
&
::before
{
&:first-child
{
top
:
-1vh
;
top
:
-1vh
;
transform
:
rotate
(
180deg
);
transform
:
rotate
(
180deg
)
translateX
(
50%
);
}
}
&
::after
{
&
:last-child
{
bottom
:
-1vh
;
bottom
:
-1vh
;
}
}
}
}
}
.row-line
{
.row-line
{
left
:
105px
;
left
:
105px
;
width
:
79px
;
width
:
79px
;
border-top
:
4px
dashed
#56fefe
;
height
:
4px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
background
:
repeating-linear-gradient
(
to
right
,
transparent
0%
50%
,
#56fefe
50%
51%
);
background-size
:
10px
1px
;
animation
:
move-dots-left
4s
linear
infinite
;
.icon
{
.icon
{
position
:
absolute
;
position
:
absolute
;
left
:
-80px
;
left
:
-80px
;
...
@@ -183,7 +214,10 @@ export default {
...
@@ -183,7 +214,10 @@ export default {
content
:
''
;
content
:
''
;
top
:
50%
;
top
:
50%
;
transform
:
translateY
(
-50%
);
transform
:
translateY
(
-50%
);
border-top
:
4px
dashed
#56fefe
;
height
:
4px
;
background
:
repeating-linear-gradient
(
to
right
,
transparent
0%
50%
,
#56fefe
50%
51%
);
background-size
:
10px
1px
;
animation
:
move-dots-left
4s
linear
infinite
;
}
}
}
}
&
:nth-child
(
4
)
{
&
:nth-child
(
4
)
{
...
@@ -202,4 +236,20 @@ export default {
...
@@ -202,4 +236,20 @@ export default {
}
}
}
}
}
}
@keyframes
move-dots-left
{
0
%
{
background-position-x
:
100px
;
}
100
%
{
background-position-x
:
0
;
}
}
@keyframes
move-dots-y
{
0
%
{
background-position-y
:
100px
;
}
100
%
{
background-position-x
:
0
;
/* 调整这个值来改变动画的范围 */
}
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment