Drag and throw elements and watch them continue naturally with momentum, respect bounds and optionally snap to a grid. This is the demo seen at http://www.greensock.com/draggable/
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
<!doctype html> | |
<html> | |
<head> | |
<!-- Run in full-screen mode. --> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<!-- Make the status bar black with white text. --> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black"> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.3.0/pure-min.css"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<div class="container"> |
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
@@ -71,7 +71,7 @@ | |
if (this.isRTL){ | |
this.picker.addClass('datepicker-rtl'); | |
this.picker.find('.prev i, .next i') | |
- .toggleClass('icon-arrow-left icon-arrow-right'); | |
+ .toggleClass('fa-arrow-left fa-arrow-right'); | |
} | |
$(document).on('mousedown', function (e) { | |
// Clicked outside the datepicker, hide it | |
@@ -951,9 +951,9 @@ |
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
var url = 'https://lh6.googleusercontent.com/-NQAMokukfdE/AAAAAAAAAAI/AAAAAAAAAAA/zSaLZajdgEI/s48-c-k-no/photo.jpg'; | |
var xoffset = 240; | |
var yoffset = 210; | |
var pixelSize = 7; | |
var viewportWidth = 800; | |
var viewportHeight = 670; | |
// | |
// And away we go | |
// |
Drag and throw elements and watch them continue naturally with momentum, respect bounds and optionally snap to a grid. This is the demo seen at http://www.greensock.com/draggable/
Part of the SplitText Collection
Forked from GreenSock's Pen SplitText: Random Words.
A Pen by Captain Anonymous on CodePen.
Just a fun little example that helps answer a question in the GreenSock forums: http://greensock.com/forums/topic/10457-timeline-max-particles/
OlderNewer