We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93ccb16 commit c8b5b87Copy full SHA for c8b5b87
snippets/css/effects/rgb-border.md
@@ -0,0 +1,38 @@
1
+---
2
+title: rgb-border
3
+description: changes border of an Element to rgb onhover (Can be changed)'
4
+author: Brianali-codes
5
+tags: css,effects
6
7
+
8
+```css
9
+.yourElement {
10
+ /* Your Elements styles go here*/
11
+ border-style: solid;
12
+ border-radius: 10px;
13
+ color: rgb(0, 0, 0);
14
15
+}
16
+.yourElement:hover {
17
18
+ animation: change-color;
19
+ animation-duration: 0.5s; /* you can alter the duration of the animation here. */
20
+ animation-iteration-count: infinite; /* Choose to play animation infinitely or once on hover. */
21
22
23
+@keyframes change-color {
24
+ 0% {
25
+ border-color: red;
26
+ }
27
28
+ 50% {
29
+ border-color: green;
30
31
32
+ 100% {
33
+ border-color: blue;
34
35
36
37
38
+```
0 commit comments