-
-
Save harisheidiko/1da2c9fea0f9ac4922df40af8503c3f5 to your computer and use it in GitHub Desktop.
Untitled
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.box{ | |
position:relative;background-color:#f1f1f1; | |
width:300px;height:300px; | |
margin:80px auto;z-index:3;} | |
.box:before{ | |
content:'';position:absolute; | |
left:0;top:0;bottom:0;right:0; | |
border:2px solid red;margin:-20px;z-index:-1; | |
clip:rect(0,100px,50px,10px); | |
animation:lineA 8s linear infinite;} | |
.box:after{ | |
content:'';position:absolute; | |
left:0;top:0;bottom:0;right:0; | |
border:2px solid red;margin:-20px;z-index:-1; | |
clip:rect(0,100px,50px,10px); | |
animation:lineB 8s linear infinite;} | |
@keyframes lineA{ | |
0%,100%{clip:rect(0,340px,2px,0)} | |
25%{clip:rect(0,2px,340px,0)} | |
50%{clip:rect(338px,340px,340px,0)} | |
75%{clip:rect(0,340px,340px,338px)} | |
} | |
@keyframes lineB{ | |
0%,100%{clip:rect(338px,340px,340px,0)} | |
25%{clip:rect(0,340px,340px,338px)} | |
50%{clip:rect(0,340px,2px,0)} | |
75%{clip:rect(0,2px,340px,0)} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="box"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split-vertical","fontsize":"90","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment