border-right - HTML CSS CSS Animatable Property

HTML CSS examples for CSS Animatable Property:border-right


Only the border-right-width, and border-right-color properties are animatable in CSS among all the individual border-right properties.

The border-style property is not animatable.

-webkit- prefix is for Chrome, Safari, Opera.

-moz- prefix is for Firefox.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>

<html lang="en">
  <title>Example of CSS border-right Property Animation</title>
  <style type="text/css">
.animated {<!--   www .j av a  2 s  .c  o m-->
  width: 300px;
  padding: 40px 0;
  font: bold 50px sans-serif;
  text-align: center;
    background: #EEEEEE;
    border: 2px solid red;
    -webkit-animation: test 4s infinite; 
    animation: test 4s infinite;

@-webkit-keyframes test {
    50% {border-right: 20px solid indigo;}

@keyframes test {
    50% {border-right: 20px solid indigo;}

  <p> </p>
  <div class="animated">

Related Tutorials