mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Bouncing callout. This is what it all builds up to.
This commit is contained in:
parent
07fb40dbd5
commit
cae311b0d2
1 changed files with 13 additions and 1 deletions
|
@ -16,7 +16,8 @@
|
|||
this.story_view = 'page';
|
||||
|
||||
this.flags = {
|
||||
'feed_view_images_loaded': {}
|
||||
'feed_view_images_loaded': {},
|
||||
'bouncing_callout': false
|
||||
};
|
||||
this.locks = {};
|
||||
this.cache = {
|
||||
|
@ -1671,6 +1672,8 @@
|
|||
open_add_feed_modal: function() {
|
||||
var feed_id = this.active_feed;
|
||||
|
||||
clearInterval(this.flags['bouncing_callout']);
|
||||
|
||||
NEWSBLUR.add_feed = new NEWSBLUR.ReaderAddFeed();
|
||||
},
|
||||
|
||||
|
@ -1887,6 +1890,8 @@
|
|||
// ========
|
||||
|
||||
setup_ftux_add_feed_callout: function() {
|
||||
var self = this;
|
||||
|
||||
$('.NB-callout-ftux .NB-callout-text').text('First things first...');
|
||||
$('.NB-callout-ftux').corner('5px');
|
||||
$('.NB-callout-ftux').css({
|
||||
|
@ -1898,6 +1903,13 @@
|
|||
}, {
|
||||
'duration': 750,
|
||||
'easing': 'easeInOutQuint'
|
||||
}).each(function() {
|
||||
var $this = $(this);
|
||||
self.flags['bouncing_callout'] = setInterval(function() {
|
||||
$this.animate({'bottom': '+=2px'}, {'duration': 200, 'easing': 'easeInOutQuint'})
|
||||
.animate({'bottom': '+=0px'}, {'duration': 50})
|
||||
.animate({'bottom': '-=2px'}, {'duration': 200, 'easing': 'easeInOutQuint'});
|
||||
}, 1000);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue