Magic Animation Js is easy to use

Bind Magic Animation Js to your Website and get the magic


Prerequisites

To use the Magic Slide Js plugin for your Website there are some requirements necessary.

  • Bind JQuery in your Website
  • Bind Magic Slide Js after JQuery in your Website
  • Include the stylesheet Animate.css into your Website
  • Define ".invis" class anywhere (opacity = 0)


<head>...
	<link rel="stylesheet" href="http://daneden.github.io/animate.css/animate.min.css">
	...

	<style>
	.invis{
		opacity:0;
	}
	</style>
</head>
<body>
	...
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
	<script src="js/magic_animation.js"></script>...
</body>
            			

Normal slide effect by Website loading

                		 	
<div class="... mslide vis" data-slide="fadeInLeft">
    <h3>Text to describe something</h3>
	 <p>
	 ...
 	</p>
</div>
					 	

Explain the on loading Website slide effect

To describe that the slide effect start by document is ready use the following classnames "mslide" and "vis". The "mslide" class tells that the element will be get a slide effect and the classname "vis" defined that the slide effect will be start if the website are ready loaded.

The attribute "data-slide" defined the slide effect which is named by the "animate.css" stylesheet.



Explain the scrolling Website slide effect

The slide effect will be comes up if the window is scrolling down. The "mslide" class tells that the element will be get a slide effect and the classname "invis" defined that the element will not showing by the page load. If the window scrolling down the element will be slide in the window by the defined slide effect in the attribute "data-slide".

The attribute "data-slide" defined the slide effect which is named by the "animate.css" stylesheet.

Normal slide effect by scrolling the Website down

                		 	
<div class="... mslide invis" data-slide="fadeInRight">
    <h3>Text to describe something</h3>
	 <p>
	 ...
 	</p>
</div>
					 	

More Magic Effects

Mouse-Enter animation effect

1. <div class="... mslide app-item" id="..." data-slide="fadeInRight">
2.    <div class="... animate-item" data-slide="flip">
3.        <i class="fa fa-cubes fa-3x"></i>
4.    </div>
5.    ...
6.    <p style="text-align:justify;">
7.		....     
8.	</p>
9. </div>

Description

In the first line you define the class "mslide" and "app-item" together with a "data-slide" attribute. The class "mslide" and attribute "data-slide" is in order to make e.g. the "fadeInRight" magic by loading or scrolling the page. Besides the class "mslide" is the class "app-item" also defined for another animation magic of the item.

Use the class "app-item" always in combination with a children node with a classname "animate-item". On the children node with classname "animate-item" use also the attribute "data-slide" to define an animation effect of this node. The next three examples shows the "flip" magic.



Mouse-Over-Effect




Example 1

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.

Example 2

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.

Example 3

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.




The MIT License (MIT)

Copyright (c) 2015 Magic Slide Js

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.