From ab7c54f28151e5ae485881ec53ba22718ff4b449 Mon Sep 17 00:00:00 2001 From: Stuart Knightley Date: Tue, 20 Mar 2012 09:32:21 -0700 Subject: Change Youtube channel transition to avoid rendering bug --- .../montage/ui/youtube-channel.reel/youtube-channel.html | 14 +++++++++----- .../montage/ui/youtube-channel.reel/youtube-channel.js | 4 ++-- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/node_modules/montage/ui/youtube-channel.reel/youtube-channel.html b/node_modules/montage/ui/youtube-channel.reel/youtube-channel.html index 50286c22..a405fc7c 100644 --- a/node_modules/montage/ui/youtube-channel.reel/youtube-channel.html +++ b/node_modules/montage/ui/youtube-channel.reel/youtube-channel.html @@ -58,9 +58,15 @@ height: 90px; width: 120px; background-color: #000; + opacity: 1; + + -webkit-transition: opacity 0.5s ease-in-out; + } + .montage-youtube-channel.show img { + opacity: 0; } - .montage-youtube-channel-popup { + .montage-youtube-channel .montage-youtube-channel-popup { width: 640px; border: 5px solid #000; border-radius: 5px; @@ -74,13 +80,11 @@ z-index: 9000; - -webkit-transform: scale3d(0, 0, 1); opacity: 0; - -webkit-transition: all 0.5s ease-in-out; visibility: hidden; + -webkit-transition: all 0.5s ease-in-out; } - .montage-youtube-channel-popup.show { - -webkit-transform: scale3d(1, 1, 1); + .montage-youtube-channel.show .montage-youtube-channel-popup { opacity: 1; visibility: visible; } diff --git a/node_modules/montage/ui/youtube-channel.reel/youtube-channel.js b/node_modules/montage/ui/youtube-channel.reel/youtube-channel.js index 3d9f7f2f..ccbd9978 100644 --- a/node_modules/montage/ui/youtube-channel.reel/youtube-channel.js +++ b/node_modules/montage/ui/youtube-channel.reel/youtube-channel.js @@ -133,7 +133,7 @@ var YoutubeChannel = exports.YoutubeChannel = Montage.create(Component, { } if (this._shouldShowPopup) { - this._popupElement.classList.add("show"); + this._element.classList.add("show"); if (window.Touch) { document.addEventListener('touchstart', this, false); } else { @@ -141,7 +141,7 @@ var YoutubeChannel = exports.YoutubeChannel = Montage.create(Component, { document.addEventListener('keyup', this, false); } } else { - this._popupElement.classList.remove("show"); + this._element.classList.remove("show"); this.player.stop(); if (window.Touch) { -- cgit v1.2.3 From 64f2a4b6c0ca9e47996ab9bcec05b51d1e1194e4 Mon Sep 17 00:00:00 2001 From: Kishore Subramanian Date: Tue, 20 Mar 2012 09:42:29 -0700 Subject: Animation for the Feed reader --- .../examples/feed-reader/main.reel/main.html | 42 ++++++++++++++++++++-- .../feed-reader/feed-reader.reel/feed-reader.html | 4 ++- .../ui/feed-reader/feed-reader.reel/feed-reader.js | 38 +++++++++++++++----- 3 files changed, 71 insertions(+), 13 deletions(-) diff --git a/node_modules/montage/examples/feed-reader/main.reel/main.html b/node_modules/montage/examples/feed-reader/main.reel/main.html index 50bac601..1313219f 100644 --- a/node_modules/montage/examples/feed-reader/main.reel/main.html +++ b/node_modules/montage/examples/feed-reader/main.reel/main.html @@ -45,8 +45,8 @@ "name": "FeedReader", "properties": { "element": {"#": "feed-reader"}, - "feedDisplayMode": "timed", - "interval": "5" + "feedDisplayMode": "animation", + "interval": "3" } }, @@ -170,6 +170,7 @@ margin-top: 10px; } + /* .feed-reader .feed-entry { visibility:hidden; @@ -182,7 +183,42 @@ transition-delay:0s; } */ + + @-webkit-keyframes rotateWithAlphaKeyframes { + 0% { + opacity: 0; + -webkit-transform: perspective(1000) rotateY(95deg); + } + 1% { + opacity: 0; + -webkit-transform: perspective(1000) rotateY(-90deg); + } + 15% { + opacity: 1; + -webkit-transform: perspective(1000) rotateY(0deg); + } + 85% { + opacity: 1; + -webkit-transform: perspective(1000) rotateY(0deg); + } + 100% { + opacity: 0; + -webkit-transform: perspective(1000) rotateY(95deg); + } + } + + .rotateWithAlphaAnimation { + -webkit-animation-name: rotateWithAlphaKeyframes; + -webkit-animation-duration: 5s; + -webkit-animation-iteration-count: infinite; + -webkit-animation-direction: normal; + -webkit-animation-timing-function: ease-out; + -webkit-transform-origin: 200% 50%; + -webkit-transform-style: preserve-3d; + -webkit-transform: perspective(1000); + } + @@ -201,7 +237,7 @@ -
+
diff --git a/node_modules/montage/ui/feed-reader/feed-reader.reel/feed-reader.html b/node_modules/montage/ui/feed-reader/feed-reader.reel/feed-reader.html index e5251e0a..21f3d4ee 100644 --- a/node_modules/montage/ui/feed-reader/feed-reader.reel/feed-reader.html +++ b/node_modules/montage/ui/feed-reader/feed-reader.reel/feed-reader.html @@ -52,7 +52,9 @@