Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add swiss railway clock pause #3

Merged
merged 1 commit into from
Jan 13, 2018
Merged

Add swiss railway clock pause #3

merged 1 commit into from
Jan 13, 2018

Conversation

rochaporto
Copy link
Contributor

Add an option to enable the swiss railway clock pause at minute passing,
in addition to the existing second bounce.

Fixes #2

Add an option to enable the swiss railway clock pause at minute passing,
in addition to the existing second bounce.

Fixes svgdotjs#2
.rotate(deg, 50, 50)
else
this.seconds
.rotate(deg, 50, 50)

return this
}
, linear: function(pos) { return pos }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After svgdotjs/svg.easing.js#6 we don't need this.

/* calculate rotation */
var deg = this.full.seconds * 360 + 360 / 60 * seconds

/* animate if duration is given */
if (duration)
this.seconds
.animate(duration, SVG.easing.elastic)
.animate(duration, this.linear)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should probably make this optional (linear only when 'pause' is true).

@wout wout merged commit de70d67 into svgdotjs:master Jan 13, 2018
@wout
Copy link
Member

wout commented Jan 13, 2018

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants