From 6f468508553cc7231367d3ed35dba54283bdebb6 Mon Sep 17 00:00:00 2001 From: Rene Ae Date: Tue, 8 Dec 2015 23:09:37 -0600 Subject: storyview transitions --- StoneIsland/www/js/lib/blogs/StoryView.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'StoneIsland/www/js/lib/blogs/StoryView.js') 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() }, -- cgit v1.2.3-70-g09d2