Skip to content

Commit 56f3f43

Browse files
update pingpong
1 parent bc8641f commit 56f3f43

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

src/components/PingPong.vue

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
</div>
99
<div class="ball">
1010
</div>
11-
<div class="ballhit">
12-
</div>
1311
</div>
1412
</div>
1513
</div>
@@ -74,24 +72,14 @@ export default {
7472
right:0;
7573
animation: pingpong-position2 2s linear infinite;
7674
}
77-
.ball,
78-
.ballhit {
75+
.ball{
7976
width:15px;
8077
height:15px;
8178
border-radius:50%;
8279
background:#41b883;
8380
position:absolute;
8481
animation: pingpong-bounce 2s linear infinite;
8582
}
86-
.ballhit {
87-
padding:4px;
88-
margin:-6px 0 0 -6px;
89-
border-radius:50%;
90-
background:#41b883;
91-
border:2px #41b883 solid;
92-
z-index:-1;
93-
animation: pingpong-bounce2 2s linear infinite;
94-
}
9583
@keyframes pingpong-position1 {
9684
0% {top:-60px;}
9785
25% {top:0;}
@@ -113,15 +101,4 @@ export default {
113101
75% {top:-35px;left:225px;}
114102
100% {top:-35px;left:10px;}
115103
}
116-
@keyframes pingpong-bounce2 {
117-
0% {top:-35px;left:10px; border:2px cornflowerblue solid;}
118-
24% {border:2px cornflowerblue solid;}
119-
25% {top:25px;left:225px; border:2px #41b883 solid;}
120-
49% {border:2px cornflowerblue solid;}
121-
50% {top:75px;left:10px; border:2px #41b883 solid;}
122-
74% {border:2px cornflowerblue solid;}
123-
75% {top:-35px;left:225px; border:2px #41b883 solid;}
124-
99% {border:2px cornflowerblue solid;}
125-
100% {top:-35px;left:10px; border:2px #41b883 solid;}
126-
}
127104
</style>

0 commit comments

Comments
 (0)