summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js
diff options
context:
space:
mode:
authorRene Ae <aehtyb@gmail.com>2015-12-08 23:09:37 -0600
committerRene Ae <aehtyb@gmail.com>2015-12-08 23:09:37 -0600
commit6f468508553cc7231367d3ed35dba54283bdebb6 (patch)
treef6310c68be8feae562d7d722ee469eb920feed7c /StoneIsland/www/js
parentea6860e8d1d8f8b5dac999373feed0a98534f213 (diff)
storyview transitions
Diffstat (limited to 'StoneIsland/www/js')
-rw-r--r--StoneIsland/www/js/lib/blogs/StoryView.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/StoneIsland/www/js/lib/blogs/StoryView.js b/StoneIsland/www/js/lib/blogs/StoryView.js
index d0449635..ee7193a6 100644
--- a/StoneIsland/www/js/lib/blogs/StoryView.js
+++ b/StoneIsland/www/js/lib/blogs/StoryView.js
@@ -58,7 +58,11 @@ var StoryView = ScrollableView.extend({
this.$content.find("[data-id=" + id + "]").addClass("active")
var section = this.sections[id]
- this.$img.attr("src", section.image.uri)
+ var replace = this.$img
+ // optional image transition.. ?
+ this.$img.fadeTo(110,0.65, function() {
+ replace.attr("src", section.image.uri)
+ }).fadeTo(130,1)
this.deferScrollToTop()
},