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-image-width animation property


with the border-image-width property you can animate width of border image.

Values

This is the value you will use with border-image-width property

ValueDescription
lengthSpecifies the width of the border in absolute or relative units.
numberDefault value 1. Represents multiples of the corresponding border-width
percentageRefers to the size of the border image area: the width of the area for horizontal offsets, the height for vertical offsets
autoSpecifies that the border image width is the intrinsic width, or height, of the corresponding image slice.

Example


One Value

@keyframes myAnimation {
   from {
      
border-image-width
 
auto|number
   }
   to {
      
border-image-width
 
auto|number
   }
}
@keyframes myAnimation {
   0% {
      
border-image-width
 
auto|number
   }
   100% {
      
border-image-width
 
auto|number
   }
}

Two Values

@keyframes myAnimation {
   from {
      
border-image-width
 
auto|number  auto|number
   }
   to {
      
border-image-width
 
auto|number  auto|number
   }
}
@keyframes myAnimation {
   0% {
      
border-image-width
 
auto|number  auto|number
   }
   100% {
      
border-image-width
 
auto|number  auto|number
   }
}

Three Values

@keyframes myAnimation {
   from {
      
border-image-width
 
auto|number  auto|number  auto|number
   }
   to {
      
border-image-width
 
auto|number  auto|number  auto|number
   }
}
@keyframes myAnimation {
   0% {
      
border-image-width
 
auto|number  auto|number  auto|number
   }
   100% {
      
border-image-width
 
auto|number  auto|number  auto|number
   }
}

Four Values

@keyframes myAnimation {
   from {
      
border-image-width
 
auto|number  auto|number  auto|number  auto|number
   }
   to {
      
border-image-width
 
auto|number  auto|number  auto|number  auto|number
   }
}
@keyframes myAnimation {
   0% {
      
border-image-width
 
auto|number  auto|number  auto|number  auto|number
   }
   100% {
      
border-image-width
 
auto|number  auto|number  auto|number  auto|number
   }
}

References