data-transition on link, and BaseTransition as interface

This commit is contained in:
Quentin Hocdé
2018-02-01 16:14:35 -05:00
parent 8b77d8ae40
commit bd33e8cb02
12 changed files with 226 additions and 1025 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1,4 +1,4 @@
/*! Dependencies for Locomotive Boilerplate - 2018-01-31 */
/*! Dependencies for Locomotive Boilerplate - 2018-02-01 */
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.Pjax=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
var clone = _dereq_('./lib/clone.js')
var executeScripts = _dereq_('./lib/execute-scripts.js')

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
<!doctype html>
<!--[if lte IE 9]> <html lang="fr" class="has-no-js ie9"> <![endif]-->
<!--[if gt IE 9]><!--> <html lang="fr" class="has-no-js"> <!--<![endif]-->
<!--[if gt IE 9]><!--> <html lang="fr" class="has-no-js" data-debug> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
@@ -22,7 +22,7 @@
<a href="/">Home</a>
</li>
<li>
<a href="page.html">Page</a>
<a href="page.html" data-transition="CustomTransition">Page</a>
</li>
<li>
<a href="page.html" class="no-transition">No transition link</a>

View File

@@ -22,7 +22,7 @@
<a href="/">Home</a>
</li>
<li>
<a href="/page.html">A page</a>
<a href="page.html" data-transition="CustomTransition">Page</a>
</li>
<li>
<a href="page.html" class="no-transition">No transition link</a>