Permalink
Browse files

Animated help prompt

  • Loading branch information...
1 parent c3b3096 commit ca7d12dfde345af1223e1a40b1732e0fc9b55733 @deleted deleted committed Oct 30, 2012
Showing with 20 additions and 0 deletions.
  1. +20 −0 geocamTiePoint/static/geocamTiePoint/js/backbone/views.js
@@ -557,6 +557,7 @@ $(function($) {
this.model.on('add_point redraw_markers', this.initMarkerSelectHandlers, this);
this.renderHelp();
+ this.animatePrompt();
enableUndoButtons();
},
@@ -581,6 +582,25 @@ $(function($) {
}
},
+ animatePrompt: function(){
+ var prompt = $('.instructions-prompt');
+ var startProps = {
+ position: 'relative',
+ 'z-index': 1000,
+ top: '300px',
+ //left: '130px',
+ };
+ var endProps = {
+ top: '0px',
+ left: '0px',
+ };
+ prompt.css(startProps);
+ prompt.animate(endProps, {
+ duration: 1500,
+ complete: function(){ prompt.css('position', 'static'); },
+ });
+ },
+
prevHelpStep: function() {
this.helpIndex--;
this.renderHelp();

0 comments on commit ca7d12d

Please sign in to comment.