transitions

Working implementation of slide up/down transition using UINavigationControllerDelegate on iOS7

半城伤御伤魂 提交于 2020-02-02 08:36:47
问题 I've been spending some time trying to sort out custom transition animations available in iOS 7. According to this question, UINavigationControllerDelegate is the way to go. There are, however, no examples or documentation describing how best to approach a simple vertical transition in iOS7. (There are a plethora of other transition styles using UINavigationControllerDelegate, but none as simple as sliding the view up and down -- there are others that suggest just modifying the view position,

Have no page transition in Windows Phone runtime

我是研究僧i 提交于 2020-01-24 06:44:44
问题 I'm trying to disable Windows Phone runtime's default page navigation animation. All I could achieve, is to change it to either continuum, turnstile or slide, but I'd like the page to change instantaneously. So when I call this.Frame.navigate() it should navigate to the new page without any animation. In Silverlight, this was the default case, no page transitions out of the box. Now I can't get rid of them. The reason why I am trying to accomplish this, is because I'd like to add my own

VisualStateManager and generated transitions

老子叫甜甜 提交于 2020-01-22 18:31:24
问题 Just when I think I understand the VisualStateManager , something proves me wrong. I'm using WPF 4 and am trying to simply enlarge an item on mouse over, and shrink it back on mouse leave. I figured I'd just define each state in a VisualStateGroup and then specify a VisualTransition with a GeneratedDuration : <Border x:Name="PART_Root" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" RenderTransformOrigin

UIKit Dynamics in a Custom Segue

こ雲淡風輕ζ 提交于 2020-01-16 19:14:27
问题 I'm trying to make a view fall as a custom segue transition, but when the perform method is called in the UIStoryboardSegue implementation, it does not fall. I have tried moving the view to be dropped into the source's view to see if it does anything, but it doesn't. -(void)perform { UIViewController *src = (UIViewController *)self.sourceViewController; UIViewController *dest = (UIViewController *)self.destinationViewController; UIView *viewdrop = [dest.view snapshotViewAfterScreenUpdates:YES

Extending paths in D3 with transition

那年仲夏 提交于 2020-01-14 05:17:09
问题 I've been grappling with issues relating to transitions in D3. Consider this code: svg.selectAll("path") .data(data, key) .enter().append("path") .attr("d", someFunctionThatReturnsAPath); }); And I call the following in a setTimeout a few seconds later: svg.selectAll("path") .transition() .duration(2000) .attr("d", someFunctionThatReturnsADifferentPath); }); The second call correctly updates the paths but doesn't animate the transition. Why is there no transition when the d attribute is

Transition color

安稳与你 提交于 2020-01-14 02:53:07
问题 I would like to change the color of my navigation bar, with animation. I tried CATransition but I can't find how to change the color with that. Is there a way to change the color with a fading or any other animation ? Like TransitionDrawable in Android. Thanks. 回答1: I tried some stuff and finally ended up with this solution. It doesn't need any extra layers, images or transition views and makes use of the built-in animation of the bar. Therefore it does not hide any titles and bar buttons

How to enable “Transition Animation Scale” in “Developer Options” programmatically ?

谁都会走 提交于 2020-01-13 12:17:51
问题 I have some animation transitions for my activities. So when an activity starts, it comes up with some fade animations. Here is the code: Intent intent = new Intent(this, NextActivity.class); startActivity(intent); overridePendingTransition (android.R.anim.fade_in, android.R.anim.fade_out); The Problem is that, these animations will not run when "Transition Animation Scale" in "Developer Options" is off. So I'm searching for a way to enable this feature programmatically to ensure that my

How to interpolate custom UICollectionViewLayoutAttributes properties with UICollectionViewTransitionLayout

南笙酒味 提交于 2020-01-12 03:19:10
问题 I have two custom UICollectionViewLayout objects that use a custom UICollectionViewLayoutAttributes subclass. These custom attributes add a single property tintAlpha that controls the opacity of a tint overlay view attached to each collection view cell. I now want to transition between these two layouts, using a UICollectionViewTransitionLayout subclass. How can I configure the transition layout subclass to interpolate the custom tintAlpha property on my custom layout attributes? I could do

fade background images with css3

血红的双手。 提交于 2020-01-11 07:25:10
问题 Hey everyone... Im wondering why this wont work? .right-article.boy { background: transparent url(../images/boxes-bg/boy.jpg) left top no-repeat; width: 413px; height: 242px; -webkit-transition: background 1.5s linear; -moz-transition: background 1.5s linear; transition: background 1.5s linear; } .right-article.boy:hover { background: transparent url(../images/boxes-bg/boy-hover.jpg) left top no-repeat; } If i change the background to colors like yellow and the hover, black, it works fine....

Image transitions not working in firefox

半世苍凉 提交于 2020-01-06 07:17:07
问题 http://jsfiddle.net/Lnykg/ When you hover over the image its supposed to fade transition into the other image, but in firefox the transition is broken. I tried adding a top: 0px; which was suggested from a similar question asked, but still doesn't work. .infidus { margin-left: 0px; top: 0px; width:698px; height:300px; background: url(); -moz-transition-duration: 0.7s; -webkit-transition-duration: 0.7s; transition-duration: 0.7s; } .infidus:hover { margin-top: 0px; top: 0px; width:698px;