Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions snippets/css/effects/rgb-border-color-animation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
title: RGB Border Color Animation
description: changes border of an Element to rgb onhover (Can be changed)'
author: Brianali-codes
tags: animation,effects,borders
---

```css
.yourElement {
/* Your Elements styles go here*/
border-style: solid;
border-radius: 10px;
color: rgb(0, 0, 0);

}
.yourElement:hover {

animation: change-color;
animation-duration: 0.5s; /* you can alter the duration of the animation here. */
animation-iteration-count: infinite; /* Choose to play animation infinitely or once on hover. */
}

@keyframes change-color {
0% {
border-color: red;
}

50% {
border-color: green;
}

100% {
border-color: blue;
}
}


```
Loading