Skip to content

Commit 4fdac7a

Browse files
author
daniel-lundin
committed
Bumped version
1 parent 57453c6 commit 4fdac7a

File tree

7 files changed

+10
-36
lines changed

7 files changed

+10
-36
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Fast animations with Javascript and CSS transforms
1919
## Releases
2020
The initial release is out. Would love some feedback on things that can be improved. The release(and future ones) can be found in the release section
2121

22+
- **0.6.3** - IE Bug fix, polyfill for Array.prototype.find
2223
- **0.6.2** - Bug fixes, Added sequencing of animations
2324
- **0.6.1** - Fixed UMD-build
2425
- **0.6.0** - ES6, test suite, life cycle events, new demos

docs/index.html

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -510,12 +510,6 @@ <h3>Animation configuration</h3>
510510
<td>0</td>
511511
<td>Delay before the animation is started in milliseconds</td>
512512
</tr>
513-
<tr>
514-
<td>loop</td>
515-
<td>Scalar</td>
516-
<td>0</td>
517-
<td>Number of times to repeat the animation</td>
518-
</tr>
519513
<tr>
520514
<td>start(index, total)</td>
521515
<td>function</td>
@@ -552,7 +546,6 @@ <h3>Animation configuration</h3>
552546
<li><strong>opacity</strong> - Element opacity(0 - 1)(<em>fromOpactiy</em> mandatory if used)</li>
553547
<li><strong>duration</strong> - Animation duration in milliseconds</li>
554548
<li><strong>delay</strong> - Delay before the animation is started in milliseconds</li>
555-
<li><strong>loop</strong> - Number of times to repeat the animation</li>
556549
<li><strong>complete(index, total)</strong> - Function to be called when animation is completed. If multiple elements are animated, this function will be called once for every element with two parameters, index of current element and total elements in the animated collection. <em>this</em> will be bound the current element</li>
557550
<li><strong>allDone</strong> - Will be called once independent of how many elements animated</li>
558551
</ul>

docs/snabbt.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "snabbt.js",
3-
"version": "0.6.2",
3+
"version": "0.6.3",
44
"description": "Fast animations with javascript and CSS-transforms",
55
"main": "snabbt.js",
66
"files": [

snabbt.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* snabbt.js Version: 0.6.3 Build date: 2015-12-17 (c) 2015 Daniel Lundin @license MIT */
12
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.snabbt = f()}})(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);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.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(require,module,exports){
23
// Array.prototype.find - MIT License (c) 2013 Paul Miller <http://paulmillr.com>
34
// For all details and docs: https://github.com/paulmillr/array.prototype.find
@@ -91,12 +92,6 @@ function createAnimation(startState, _endState, options, transformProperty) {
9192
easer.resetFrom(manualValue);
9293
},
9394

94-
restart: function restart() {
95-
// Restart timer
96-
startTime = -1;
97-
easer.resetFrom(0);
98-
},
99-
10095
tick: function tick(time) {
10196
if (manual) {
10297
currentTime = time;
@@ -240,11 +235,6 @@ function createAttentionAnimation(_options) {
240235

241236
completed: function completed() {
242237
return spring.completed();
243-
},
244-
245-
restart: function restart() {
246-
// Restart spring
247-
spring = easing.createSpringEasing(_options);
248238
}
249239
};
250240
}

snabbt.min.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/animation.js

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,6 @@ function createAnimation(startState, endState, options, transformProperty) {
5656
easer.resetFrom(manualValue);
5757
},
5858

59-
restart() {
60-
// Restart timer
61-
startTime = -1;
62-
easer.resetFrom(0);
63-
},
64-
6559
tick(time) {
6660
if (manual) {
6761
currentTime = time;
@@ -195,22 +189,17 @@ function createAttentionAnimation(options) {
195189
}
196190
},
197191

198-
updateElement: function(element) {
192+
updateElement(element) {
199193
utils.updateElementTransform(element, currentMovement.asMatrix());
200194
utils.updateElementProperties(element, currentMovement.getProperties());
201195
},
202196

203-
getCurrentState: function() {
197+
getCurrentState() {
204198
return currentMovement;
205199
},
206200

207-
completed: function() {
201+
completed() {
208202
return spring.completed();
209-
},
210-
211-
restart: function() {
212-
// Restart spring
213-
spring = easing.createSpringEasing(options);
214203
}
215204
};
216205
}

0 commit comments

Comments
 (0)