Skip to content

Commit

Permalink
add option for non-js users to transition in
Browse files Browse the repository at this point in the history
  • Loading branch information
zbryikt committed May 27, 2019
1 parent d5394c6 commit 7149e0b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
5 changes: 3 additions & 2 deletions dist/loading-bar.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/loading-bar.min.js

Large diffs are not rendered by default.

Binary file modified dist/loading-bar.zip
Binary file not shown.
3 changes: 2 additions & 1 deletion lib/loading-bar.js
Expand Up @@ -214,6 +214,7 @@ wrap = function(content){
"bbox": null,
"set-dim": true,
"aspect-ratio": "xMidYMid",
"transition-in": false,
"min": 0,
"max": 100,
"precision": 0,
Expand Down Expand Up @@ -689,7 +690,7 @@ wrap = function(content){
des = this.value;
return this.transition.start(src, des, doTransition);
};
this.set(+config.value || 0, false);
this.set(+config.value || 0, config["transition-in"]) || false;
return this;
};
return window.addEventListener('load', function(){
Expand Down
3 changes: 2 additions & 1 deletion src/loading-bar.ls
Expand Up @@ -141,6 +141,7 @@ do ->
"bbox": null
"set-dim": true
"aspect-ratio": "xMidYMid"
"transition-in": false
"min": 0
"max": 100
"precision": 0
Expand Down Expand Up @@ -383,7 +384,7 @@ do ->
des = @value
@transition.start src, des, doTransition

@set (+config.value or 0), false
@set (+config.value or 0), config["transition-in"] or false
@

window.addEventListener \load, (->
Expand Down

0 comments on commit 7149e0b

Please sign in to comment.