Skip to content

Repository files navigation

Using Motion css

Ting Logo

  • First step is to import the css file from the cloned folder
<html><head><title>
MotionCss by okechukwu omeh </title><linkrel="stylesheet" href="motion-css.css"></head></html>
  • Second Step is to add it to your elements. The second class refers to the animation desired. There are so many choices, but select the ones that apply to the icon choosen.
<divclass="battery-icon charging"></div>

CSS Categories

  • icons
  • loading animations
  • Ui Components

Ui Components

  • Buttons
    • This line of html code helps to render a gradient button. There are numerous buttons to pick from, and more will be added regularly.
<buttonclass="roundBtn roundBtn-black">Motion</button>
  • The available buttons are
<divclass="pd-2"><h2>small corner Buttons</h2><spanclass="btn btn-black">Motion</span><spanclass="btn btn-yell">Motion</span><spanclass="btn btn-gr">Motion</span><spanclass="btn btn-red">Motion</span><spanclass="btn btn-orange">Motion</span><spanclass="btn btn-blue">Motion</span></div><divclass="pd-2"><h2>small corner Buttons inverted</h2><spanclass="btn btn-r-black">Motion</span><spanclass="btn btn-r-yell">Motion</span><spanclass="btn btn-r-gr">Motion</span><spanclass="btn btn-r-red">Motion</span><spanclass="btn btn-r-orange">Motion</span><spanclass="btn btn-r-blue">Motion</span></div><divclass="pd-2"><h2>Buttons Round corners</h2><spanclass="roundBtn roundBtn-black">Motion</span><spanclass="roundBtn roundBtn-yell">Motion</span><spanclass="roundBtn roundBtn-gr">Motion</span><spanclass="roundBtn roundBtn-red">Motion</span><spanclass="roundBtn roundBtn-orange">Motion</span><spanclass="roundBtn roundBtn-blue">Motion</span></div><divclass="pd-2"><h2>Buttons Round corners inverted</h2><spanclass="roundBtn roundBtn-r-black">Motion</span><spanclass="roundBtn roundBtn-r-yell">Motion</span><spanclass="roundBtn roundBtn-r-gr">Motion</span><spanclass="roundBtn roundBtn-r-red">Motion</span><spanclass="roundBtn roundBtn-r-orange">Motion</span><spanclass="roundBtn roundBtn-r-blue">Motion</span></div><divclass="pd-2"><h2>Gradient Buttons Round corners</h2><spanclass="grdBtn grdBtn-bl-gr">Motion</span><spanclass="grdBtn grdBtn-rd-bc">Motion</span><spanclass="grdBtn grdBtn-or-bl">Motion</span><spanclass="grdBtn grdBtn-rd-bl">Motion</span><spanclass="grdBtn grdBtn-or-rd">Motion</span><spanclass="grdBtn grdBtn-or-gr">Motion</span><spanclass="grdBtn grdBtn-yell-gr">Motion</span><spanclass="grdBtn grdBtn-or-gr">Motion</span></div>

buttons img

  • Elements
    • Also there are many animated ui elements to pick from. From checkboxes to radio buttons
    • The colors can be changed by targeting the color of the element
<inputid="checkBox" type="checkbox" class="checkbox"><labelfor="checkBox" class="checker"><divclass="checkerIcon">
&nbsp;
</div></label>

Elements img

Adding loader animations to your Site

  • Firstly, the html markup
<divclass="center"><divclass="circle-loading"></div></div>
  • Add a css element to hold your loader and another to toggle it
.center{
position: fixed;
top:50%;
left:50%;
transform:translate(-50%,-50%);
width:100vw;
height:100vh;
background-color:#9bf8e6;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
z-index:99;
}
.hidden{
animation: fadeout 10s ;
animation-fill-mode: forwards;
}
  • Center and hidden was used in this demo
  • To add this to your html pages You will Write just three lines of code at most.
window.addEventListener('load',function(){document.querySelector(".center").classList.add('hidden');})

icons img

  • load elements

loading Logo

Note: Motion Css is free and subject to your customization.

About

Your favorite css icons and styles animated

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages