CSS Animation Properties

backgroundbackground-colorbackground-imagebackground-positionbackground-sizeborderborder-bottomborder-bottom-colorborder-bottom-left-radiusborder-bottom-right-radiusborder-bottom-widthborder-colorborder-imageborder-image-outsetborder-image-sliceborder-image-sourceborder-image-widthborder-leftborder-left-colorborder-left-widthborder-radiusborder-rightborder-right-colorborder-right-widthborder-spacingborder-topborder-top-colorborder-top-left-radiusborder-top-right-radiusborder-top-widthborder-widthbottombox-shadowclipclip-pathcolorcolumn-countcolumn-gapcolumn-rulecolumn-rule-colorcolumn-rule-widthcolumn-widthcolumnsfilterflexflex-basisflex-growflex-shrinkfontfont-sizegapgridgrid-auto-columnsgrid-column-gapgrid-gapgrid-row-gapgrid-templategrid-template-columnsgrid-template-rowsheightleftletter-spacingline-heightmarginmargin-bottommargin-leftmargin-rightmargin-topmask-imagemask-positionmask-sizemax-heightmax-widthmin-heightmin-widthobject-positionopacityoutlineoutline-coloroutline-offsetoutline-widthpaddingpadding-bottompadding-leftpadding-rightpadding-topperspectiveperspective-originrightrow-gaptext-decorationtext-decoration-colortext-decoration-thicknesstext-indenttext-shadowtoptransformtransform-originvertical-alignwidthword-spacingz-index

CSS border-color animation property


with the border-color property you can animate border colour.

Values

This is the value you will use with border-color property

ValueDescription
colorSpecifies the color of the border. Look at CSS Color Values for the list of possible color values.
transparentAllows the border to be transparent, though it may occupy the space set by the border-width property.
initialSets this property to its default value.

Example


One Value

@keyframes myAnimation {
   from {
      
border-color
 
color | transparent
   }
   to {
      
border-color
 
color | transparent
   }
}
@keyframes myAnimation {
   0% {
      
border-color
 
color | transparent
   }
   100% {
      
border-color
 
color | transparent
   }
}

Two Values

@keyframes myAnimation {
   from {
      
border-color
 
color|transparent  color|transparent 
   }
   to {
      
border-color
 
color|transparent  color|transparent 
   }
}
@keyframes myAnimation {
   0% {
      
border-color
 
color|transparent  color|transparent 
   }
   100% {
      
border-color
 
color|transparent  color|transparent 
   }
}

Three Values

@keyframes myAnimation {
   from {
      
border-color
 
color|transparent  color|transparent  color|transparent
   }
   to {
      
border-color
 
color|transparent  color|transparent  color|transparent
   }
}
@keyframes myAnimation {
   0% {
      
border-color
 
color|transparent  color|transparent  color|transparent
   }
   100% {
      
border-color
 
color|transparent  color|transparent  color|transparent
   }
}

Four Values

@keyframes myAnimation {
   from {
      
border-color
 
color|transparent  color|transparent  color|transparent  color|transparent
   }
   to {
      
border-color
 
color|transparent  color|transparent  color|transparent  color|transparent
   }
}
@keyframes myAnimation {
   0% {
      
border-color
 
color|transparent  color|transparent  color|transparent  color|transparent
   }
   100% {
      
border-color
 
color|transparent  color|transparent  color|transparent  color|transparent
   }
}

References