Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
79 additions
and
76 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>Sandbox: Methods out - Animsition</title> | ||
<link href="sandbox.css" rel="stylesheet"> | ||
<link href="../dist/css/animsition.min.css" rel="stylesheet"> | ||
</head> | ||
<body> | ||
<div class="animsition"> | ||
|
||
<div class="item bg-brown"> | ||
<h1>Animsition: Methods out</h1> | ||
</div> | ||
|
||
<h2>Defaults</h2> | ||
<ol> | ||
<li><a class="foo" href="index.html">Basic</a></li> | ||
<li><a class="foo" href="options.html">Options</a></li> | ||
<li><a class="foo" href="data-options.html">Data options</a></li> | ||
<li><a class="foo" href="methods-in.html">Methods in</a></li> | ||
<li><a class="foo" href="methods-out.html">Methods out</a></li> | ||
</ol> | ||
|
||
<h2>Overlays</h2> | ||
<ol> | ||
<li><a class="foo" href="overlay1.html">Overlay1</a></li> | ||
<li><a class="foo" href="overlay2.html">Overlay2</a></li> | ||
</ol> | ||
</div> | ||
|
||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script> | ||
<script src="../dist/js/animsition.min.js" charset="utf-8"></script> | ||
<script type="text/javascript"> | ||
var $animsition = $('.animsition'); | ||
|
||
$(document).ready(function() { | ||
$animsition.animsition({ | ||
onLoadEvent: false | ||
}) | ||
.each(function(i){ | ||
$(this).animsition('in'); | ||
}); | ||
}); | ||
|
||
$(document).on('click', '.foo', function(event){ | ||
event.preventDefault(); | ||
var $elem = $(this); | ||
var url = $elem.attr('href'); | ||
$animsition.animsition('out', $elem, url); | ||
}); | ||
|
||
</script> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters