1.1.4 • Published 1 year ago

awompt v1.1.4

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

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:

  • slide
  • horizontalSlide
  • fade
  • zoom
  • zoomAndSlideUp
  • slideUp
  • line

Options:

  • col | type: number | default: 6 Number of cols of animation. (available for 'slide' and 'horizontalSlide' configuration)

  • gapDelay | type: number | default: 0.02 Delay between cols. (available for 'slide' and 'horizontalSlide' configuration)

  • direction | type: string | default: bottom and left Start 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.5 Duration time of animation opening.

  • durationClosing | type: string | default: false Duration time of animation closing. If false it gets same value of duration.

  • delay | type: number | default: 0 Delay of the animation.

  • ease | type: string | default: linear Animation timing function of the page transition.

  • easeClosing | type: string | default: false Animation timing function of the page transition while closing the current page. If false it gets same value of ease.

1.1.4

1 year ago

1.1.3

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.6

1 year ago

1.1.2

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.0

1 year ago