A simple and easy jQuery plugin for CSS animated page transitions.

Overview

Animsition

Bower version npm version Build Status

A simple and easy jQuery plugin for CSS animated page transitions.

Demo & Installation

http://git.blivesta.com/animsition/

Development

Install : nodejs npm gulp

$ git clone https://github.com/blivesta/animsition.git
$ cd animsition
$ git checkout -b patch-1
$ npm install && gulp

Build

$ gulp build

Build -> Watch

$ gulp

CDN

cdnjs

  • dist/css/animsition.css
  • dist/css/animsition.min.css
  • dist/js/animsition.js
  • dist/js/animsition.min.js

Contributing

To contribute to animsition, clone this repo locally and commit your code.
Please check that everything works before opening a pull-request.

Contributors

License

Released under the MIT license.


WordPress plugin

Page Transition

Comments
  • why page out transition is not on beforeunload event ?

    why page out transition is not on beforeunload event ?

    Hey @blivesta ,

    Thanks for this great script. I am developing a wordpress plugin based on your clickstream script.

    I saw that if I want to add page out transition on all pages then I need to add class "clickstream-link" on all "a" link tags.

    Is there any specific reason for this ? Why did you not used onbeforeunload event ? Is there any other way to add page out transition ?

    Can you please through some light on it ?

    Thanks.

    Kind Regards, Gaurav Padia

    opened by gauravpadia 13
  • Animsition doesn't work with jQuery 3.2.1

    Animsition doesn't work with jQuery 3.2.1

    Hi,

    Animsition is not working with the latest version of jQuery. Its work fine with 1.11.0 version.

    Any fix? I don't want use an older version of jQuery 😕

    opened by kilimanjjjaro 11
  • Animsition stuck on loading

    Animsition stuck on loading

    When I call the Animsition transition right after the document.ready event, it works just fine.

    When I try to call the Animsition transition after loading content through an ajax call, it somehow hangs on the loading screen...

    How could this happen?

    opened by Lisser 11
  • Update in v4.0.0

    Update in v4.0.0

    #49 #46 #45 #44 #34 #33

    ToDo

    • [ ] ~~Remove of event $(window).load.~~
    • [ ] ~~Remove of options.overlay.~~
    • [ ] ~~Inclusion of options inDelay and outDelay.~~
    • [x] Change of unit for time from s to ms.
    • [x] Change and addition of event API.
    • [x] Update of loading options.
    • [x] Remove of .less and .scss in the src folder, with plan to shift to css.
    • [x] Plan to shift from grunt to gulp or node (npm script).
    • [x] Addition of transition options
    • [x] Addition of timeout options

    Demo files

    ~~https://gist.github.com/blivesta/b1a01c2a4d39bf1ea628/~~ ~~https://gist.github.com/blivesta/b1a01c2a4d39bf1ea628/download~~

    js https://github.com/blivesta/animsition/blob/v4.0.0/dist/js/jquery.animsition.js css https://github.com/blivesta/animsition/blob/v4.0.0/dist/css/animsition.css html(example) https://gist.github.com/blivesta/6f7a51440f3b9ec283d

    opened by blivesta 10
  • Flash between page loads -> Chrome & Safari

    Flash between page loads -> Chrome & Safari

    I've seen this mentioned in the issues section before but i cant see that there is actually an answer for it. I'm using the overlay effect to load between pages, however there is a flicker in between each page when viewing in chrome or safari. Firefox seems to load it fine. I noticed in the css package that many of the overlay transitions were missing -webkit- specific definitions so my assumption is that this must be in part to that. Can someone tell me why this is happening? Really ruins the overall experience when it isnt a fluid transition as intended

    question 
    opened by drnen101 9
  • Displays the old page twice

    Displays the old page twice

    Hi there,

    i would love to use this great plugin for a drupal installation. The transition itself works fine but the old page displays twice. After one click, the animation begins. After fading out the old content, the page displays again followed by the url request. The new page loads followed by the choosen transition. Are there ways to solve this?

    Thank you very much

    opened by ghost 8
  • Problem in out transition when a tag has hashed link on same page

    Problem in out transition when a tag has hashed link on same page

    @blivesta There is one more issue. If a tag have hashed link like #top on same page then page becomes blank.

    To reproduce this create a link with hashed href as per example below:

    If link with #top is clicked then page become blank instead of going to position of a tag with name=top.

    I am not sure what should be better idea to completely exclude a tag with hashed link or show an animation on it too.

    Thanks.

    opened by gauravpadia 8
  • Fancybox issue with animsition

    Fancybox issue with animsition

    When opening an fancybox the animsition is not called, when i close the fancybox with the button (<button data-fancybox-close="" class="fancybox-button fancybox-button--close" title="Close (Esc)"></button>) the overlay of animsition is activated again and won't close.

    I already tried excluding it on the linkElement with this: linkElement: 'a:not([target="_blank"]):not([href^="#"]):not(#scroll-to-home-more):not(".no-animsition"):not(".fancyBoxLink"),button:not(".fancybox-button")',

    Without luck you can guess. Is there an simple workaround?

    opened by elmarwouters 7
  • can install / use it

    can install / use it

    hi, nice to see you project, but can i ask something, i have download your animsition, but can i know how to use it for default html, because after i download it i try to see the docs package but is not appear, can i get any solutions?

    opened by Nugrah 7
  • Loading problems and iOS Safari back button issue

    Loading problems and iOS Safari back button issue

    In Safari on iOS when you click the back button to go to the previous page the page appears blank. Also some pages don't load at all. The loading icon never disappears. You have to refresh for the page to load.

    opened by ghost 7
  • Better bug fix #78 #80

    Better bug fix #78 #80

    This in my opinion is 100 times better than fix in patch-4.0.1 as this does not trigger a window refresh. On example pages maybe it looks more or less good but in real web sites doing a page refresh on every history back button is pretty ugly, especially on iOS.

    This does not work with custom elements like overlays however, maybe a better way would be to save somewhere all DOM modifications in out method and in in method to revert them?

    As I understand it will work only for elements that have an in animation on the same elements that have an out one, because this will trigger reverting classes.

    opened by nvartolomei 6
  • animation-duration edge browser

    animation-duration edge browser

    Hi, We are having a problem with animsition and page doesn't load animation and nor the styling is added. style="animation-duration: 1500ms; opacity: 1;"

    Though loading animation is added and doesn't anything after that.

    This only happens with EDGE browser. Tried in FireFox, Chrome and IE and it all works.

    Our code: $(document).ready(function () { $(".animsition").animsition({ inClass: 'fade-in', outClass: 'fade-out', inDuration: 1500, outDuration: 800, linkElement: '.animsition-link',

        loadingClass: 'animsition-loading',
    
        transition: function (url) { window.location.href = url; }
    });
    

    });

    opened by tajamal 0
  • Extend functionality to FORM / POST

    Extend functionality to FORM / POST

    Hi I managed to get your code working nicely - fantastic piece of code! Some of the elements of a portal I am developing which cause long loads are activated by

    element and send variables via POST - is there a way to make this type of transition between pages to be animsited?

    Wojtek

    opened by reklamaprosto 0
  • Animsition: Does not support this browser.

    Animsition: Does not support this browser.

    Hey Guys, I'm using this beautiful plugin on my project with java . when i run project with eclipse it work perfecly . but when i use maven-jar-plugin or any other plugin allow me to generate one jar with all dependency. the animation not work and in console show me

    Animsition: Element does not exist on page. Animsition: Does not support this browser.

       $(".animsition").animsition({
          inClass: 'fade-in',
          outClass: 'fade-out',
          inDuration: 800,
          outDuration: 500,
          
          linkElement: 'a:not([target="_blank"]):not([href^="#"]):not([class*="lg-trigger"])', // e.g. linkElement: 'a:not([target="_blank"]):not([href^="#"])'
          loading: true,
          loadingParentElement: 'html', //animsition wrapper element
          loadingClass: 'animsition-loading',
          loadingInner: '', // e.g '<img src="assets/img/loading.svg" />'
          timeout: true,
          timeoutCountdown: 4000,
          onLoadEvent: true,
          browser: ['animation-duration', '-webkit-animation-duration', '-o-animation-duration'], // "browser" option allows you to disable the "animsition" in case the css property in the array is not supported by your browser. The default setting is to disable the "animsition" in a browser that does not support "animation-duration".
          
          overlay : false,
          overlayClass : 'animsition-overlay-slide',
          overlayParentElement : 'html',
          transition: function(url){ window.location.href = url; }
       });
    

    image the image in right it work, but in the ledt not . i change my browser but not work. animation version : 4.0.2 jQuery Version : 3.2.1

    opened by account10testing 0
  • Animsition not working in jQuery 3.4.1 - WORKAROUND

    Animsition not working in jQuery 3.4.1 - WORKAROUND

    Hey Guys, after not longer ignoring the newest jquery version i've tried a lot of methods to enable animsition in jquery v3.* I've found a solution without knowing why it is working. But it works. The problem seems to be that the window Object is not available inside the function. After reading a lot to this topic I add following lines

    var loaded = false; $(window).on("load." + namespace, function() { loaded = true; }); var __ = { init: function(options) { //...

    and

    if(options.onLoadEvent) { if(loaded) { if(__.settings.timer) clearTimeout(__.settings.timer); __.in.call(_this); } else { $window.on("load", function(e) { if(__.settings.timer) clearTimeout(__.settings.timer); __.in.call(_this); }); }

    However it works but I take no responsibility :)

    I really hope, that the author will fix this correctly.

    opened by neckarpixel 2
Owner
Yasuyuki Enomoto
Design engineer
Yasuyuki Enomoto
fakeLoader.js is a lightweight jQuery plugin that helps you create an animated spinner with a fullscreen loading mask to simulate the page preloading effect.

What is fakeLoader.js fakeLoader.js is a lightweight jQuery plugin that helps you create an animated spinner with a fullscreen loading mask to simulat

João Pereira 721 Dec 6, 2022
Super-smooth CSS3 transformations and transitions for jQuery

jQuery Transit Super-smooth CSS3 transformations and transitions for jQuery jQuery Transit is a plugin for to help you do CSS transformations and tran

Rico Sta. Cruz 7.4k Dec 23, 2022
It's a presentation framework based on the power of CSS3 transforms and transitions in modern browsers and inspired by the idea behind prezi.com.

impress.js It's a presentation framework based on the power of CSS3 transforms and transitions in modern browsers and inspired by the idea behind prez

impress.js 37k Jan 2, 2023
Matteo Bruni 4.7k Jan 4, 2023
🍿 A cross-browser library of CSS animations. As easy to use as an easy thing.

Animate.css If you need the old docs - v3.x.x and under - you can find it here. Just-add-water CSS animation Installation Install with npm: npm instal

Animate.css 76.7k Dec 30, 2022
🍿 A cross-browser library of CSS animations. As easy to use as an easy thing.

Animate.css If you need the old docs - v3.x.x and under - you can find it here. Just-add-water CSS animation Installation Install with npm: npm instal

Animate.css 76.7k Jan 4, 2023
An animated and accessible command menu

kmenu ?? Animated and accessible cmdk interface Demo · NPM · Product Hunt · StackBlitz · CodeSandbox ?? Quickstart Having trouble? Unsure of something

Harsh Singh 474 Jan 4, 2023
Simple parallax scrolling effect inspired by Spotify.com implemented as a jQuery plugin

Parallax.js Simple parallax scrolling implemented as a jQuery plugin. http://pixelcog.com/parallax.js/ Please also check our v2.0.0-alpha! We'd be hap

PixelCog Inc. 3.5k Dec 21, 2022
Lightweight, simple to use jQuery plugin to animate SVG paths

jQuery DrawSVG This plugin uses the jQuery built-in animation engine to transition the stroke on every <path> inside the selected <svg> element, using

Leonardo Santos 762 Dec 20, 2022
A jQuery plugin that assists scrolling and snaps to sections.

jQuery Scrollify A jQuery plugin that assists scrolling and snaps to sections. Touch optimised. Demo http://projects.lukehaas.me/scrollify. More examp

Luke Haas 1.8k Dec 29, 2022
A jquery plugin for CSS3 text animations.

Textillate.js v0.4.1 See a live demo here. Textillate.js combines some awesome libraries to provide an easy-to-use plugin for applying CSS3 animations

Jordan Schroter 3.6k Jan 2, 2023
A jQuery plugin that recreates the Material Design pre-loader (as seen on inbox).

Material Design Preloader!s A jQuery plugin that recreates the Material Design preloader (as seen on inbox). I was fascinated when I first saw the pre

Aaron Lumsden 376 Dec 29, 2022
fullPage plugin by Alvaro Trigo. Create full screen pages fast and simple

fullPage.js English | Español | Français | Pусский | 中文 | 한국어 Available for Vue, React and Angular. | 7Kb gziped | Created by @imac2 Demo online | Cod

Álvaro 34.3k Dec 30, 2022
🐿 Super easy and lightweight(<3kb) JavaScript animation library

Overview AniX - A super easy and lightweight javascript animation library. AniX is a lightweight and easy-to-use animation library with excellent perf

anonymous namespace 256 Sep 19, 2022
Slide-element - A ~700 byte Promise-based library for animating elements with dynamic heights open & closed. Basically, a modern variant of jQuery's slideUp(), slideDown(), and slideToggle().

slide-element A tiny, accessible, Promise-based, jQuery-reminiscent library for sliding elements with dynamic heights open & closed. To see it in acti

Alex MacArthur 165 Dec 12, 2022
Animation Academy teaches you CSS animations using the transition and animation properties.

Animation Academy Open Animation Academy > Contents Background Built With Functionality Feature Highlights Wireframes Features In Development Backgrou

Jacob Benowitz 6 Jun 23, 2022
Animation library that mimics CSS keyframes when scrolling.

Why Motus ? Motus allows developers to create beatuful animations that simulate css keyframes and are applied when the user scrolls. Features Node & B

Alexandru Cambose 580 Dec 30, 2022
Pure CSS (no JavaScript) implementation of Android Material design "ripple" animation

Pure CSS (no JavaScript) implementation of Android Material design "ripple" animation

Mladen Plavsic 334 Dec 11, 2022
simple JavaScript library to animate texts

Animated Texts Hi, this library is a simple javascript text animator Properties force type: number default: 300 start_delay_time type: number default:

Cristóvão 4 Jan 11, 2022