A good[ish] website
Web development blog, loads of UI and JavaScript topics
Animating CSS border property can result in in pretty spacey looking things. I just played around with it and stuff appeared.
The gist of this experiments is to:
.module {
border-color: #84be88 #695c83 #c87a61 #edc42c;
border-width: 100px;
box-sizing: border-box;
float: left;
height: 200px;
margin: 0 20px 20px 0;
width: 200px;
}
Trigger the animation on hover:
.module:hover {
animation: border-animation 2s linear infinite;
}
The border width keyframe animation looks something like this:
@keyframes border-animation {
0% {
border-width: 100px;
}
50% {
border-width: 0;
}
100% {
border-width: 100px;
}
}
This examples uses a border on all sides of the component.
.module {
border-width: 100px;
}
.module {
border-width: 0px 100px 0px 100px;
}
This one is the trippiest of them all:
I have no idea how to use there... maybe they’re purpose is not be useful at all.
Comments would go here, but the commenting system isn’t ready yet, sorry.