Giter Club home page Giter Club logo

pure-css3-animated-border's Introduction

pure-css-animated-border

A pure css3 animated border which supports all moden browser.

CDN Link

https://cdn.jsdelivr.net/gh/code-fx/[email protected]/css/animated-border/animated-border.min.css

NPM

npm i pure-css3-animated-border

Demo Link

See the online demo.

Sponsered By Codesponsor

1,2 Line Animated Boder Examples


<a href="ui-box top-leftToRight">
  Animated Hyperlink Border
</a>

<div class="ui-box bottom-rightToLeft">
  Animated Div Border
</a>

<button class="ui-box left-bottomToTop">
  Animated Button Border
</button>

<p class="ui-box right-topToBottom">
  Animated Paragraph Border
</p>

Modify border style, color, width and easing
<style>
  //top border
  .top-leftToRight:before{
    border-top: 1px solid Tomato;
    transition-timing-function: linear;
  }

  //bottom border
  .bottom-rightToLeft:after{
    border-bottom: 1px solid DodgerBlue;
    transition-timing-function: ease-in;
  }

  //left border
  .left-bottomToTop:before{
    border-left: 1px solid smokeWhite;
    transition-timing-function: ease-out;
  }

  //right border
  .right-topToBottom:after{
     border-right: 1px solid MediumSeaGreen;
     transition-timing-function: ease-in-out;
  }
</style>

4 Line Animated Boder Example

<a href="ui-box top-leftStart">
  <span class='ui-border-element'>
    Animated Hyperlink
  </span>
</a>
Modify border style, color, width and easing
<style>
  //top border
  .top-leftStart:before{
    border-top: 1px solid Tomato;
    transition-timing-function: linear;
  }

  //bottom border
  .top-leftStart:after{
    border-bottom: 1px solid DodgerBlue;
    transition-timing-function: ease-in;
  }

  //left border
  .top-leftStart .ui-border-element:before{
    border-left: 1px solid smokeWhite;
    transition-timing-function: ease-out;
  }

  //right border
  .top-leftStart .ui-border-element:after{
     border-right: 1px solid MediumSeaGreen;
     transition-timing-function: ease-in-out;
  }
</style>

Animated Border Class Name

Class Name Use Span
.ui-box .topBottom-leftRightCorner <span class='ui-border-element'> Your Content... </span>
.ui-box .topBottom-rightLeftCorner <span class='ui-border-element'> Your Content... </span>
.ui-box .forwardBorderTrain <span class='ui-border-element'> Your Content... </span>
.ui-box .backwardBorderTrain <span class='ui-border-element'> Your Content... </span>
.ui-box .border-inOutSpread <span class='ui-border-element'> Your Content... </span>
.ui-box .slideOpposite <span class='ui-border-element'> Your Content... </span>
.ui-box .top-leftToRight
.ui-box .right-topToBottom
.ui-box .bottom-rightToLeft
.ui-box .left-bottomToTop
.ui-box .top-rightToLeft
.ui-box .right-bottomToTop
.ui-box .bottom-leftToRight
.ui-box .left-topToBottom
.ui-box .top-inOutSpread
.ui-box .right-inOutSpread
.ui-box .bottom-inOutSpread
.ui-box .left-inOutSpread
.ui-box .top-slideOpposite
.ui-box .right-slideOpposite
.ui-box .bottom-slideOpposite
.ui-box .left-slideOpposite
.ui-box .top-leftStart <span class='ui-border-element'> Your Content... </span>
.ui-box .top-rightStart <span class='ui-border-element'> Your Content... </span>
.ui-box .bottom-rightStart <span class='ui-border-element'> Your Content... </span>
.ui-box .bottom-leftStart <span class='ui-border-element'> Your Content... </span>
.ui-box .top-leftStart-backward <span class='ui-border-element'> Your Content... </span>
.ui-box .top-rightStart-backward <span class='ui-border-element'> Your Content... </span>
.ui-box .bottom-rightStart-backward <span class='ui-border-element'> Your Content... </span>
.ui-box .bottom-leftStart-backward <span class='ui-border-element'> Your Content... </span>
.ui-box .top-leftStart-burst <span class='ui-border-element'> Your Content... </span>
.ui-box .top-rightStart-burst <span class='ui-border-element'> Your Content... </span>
.ui-box .bottom-rightStart-burst <span class='ui-border-element'> Your Content... </span>
.ui-box .bottom-leftStart-burst <span class='ui-border-element'> Your Content... </span>
.ui-box .top-leftStart-burst-backward <span class='ui-border-element'> Your Content... </span>
.ui-box .top-rightStart-burst-backward <span class='ui-border-element'> Your Content... </span>
.ui-box .bottom-rightStart-burst-backward <span class='ui-border-element'> Your Content... </span>
.ui-box .bottom-leftStart-burst-backward <span class='ui-border-element'> Your Content... </span>
.ui-box .top-stay <span class='ui-border-element'> Your Content... </span>
.ui-box .right-stay <span class='ui-border-element'> Your Content... </span>
.ui-box .bottom-stay <span class='ui-border-element'> Your Content... </span>
.ui-box .left-stay <span class='ui-border-element'> Your Content... </span>

Donate Link

Donate Now.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.