awompt v1.1.4
awomPT
Page transition library of animations for websites developed in PHP.
Include css file in the head:
<link href="https://unpkg.com/awompt@1.1.4/minified/awompt-min.css" rel="stylesheet" />Include js file at the bottom of the body:
<script src="https://unpkg.com/awompt@1.1.4/minified/awompt-min.js"></script>!IMPORTANT You will specify here the color of the animation in the div element.
!WARNING If you are using an animation type that doesn't use color (like zoom), specify the color of the body to prevent problems on page change.
Include this HTML element at the top of the body:
<div class="awompt" style="background-color: #000000"></div>To prevent animation on click of a link, add this class in the HTML element <a>:
<a href="..." class="no_awompt">Under js script create the object:
new awomPT('slide', {
col: 6,
duration: 0.5
});The available configuration options are:
Animation type:
slidehorizontalSlidefadezoomzoomAndSlideUpslideUpline
Options:
col| type:number| default:6Number of cols of animation. (available for 'slide' and 'horizontalSlide' configuration)gapDelay| type:number| default:0.02Delay between cols. (available for 'slide' and 'horizontalSlide' configuration)direction| type:string| default:bottomandleftStart direction of the animation. (available for 'slide' and 'horizontalSlide' configuration)Types:
slide: - `bottom` - `top` - `alternate` - `alternate top` horizontalSlide: - `left` - `right` - `alternate` - `alternate left`duration| type:number| default:0.5Duration time of animation opening.durationClosing| type:string| default:falseDuration time of animation closing. If false it gets same value of duration.delay| type:number| default:0Delay of the animation.ease| type:string| default:linearAnimation timing function of the page transition.easeClosing| type:string| default:falseAnimation timing function of the page transition while closing the current page. If false it gets same value of ease.