transitions

CSS transitions on Safari are choppy vs. other browsers

馋奶兔 提交于 2019-12-23 12:56:32
问题 I'm really struggling trying to create smooth CSS transitions in Safari. I'm trying to hide/show divs by changing their height with a JavaScript onclick event. The resulting transitions are nice and smooth with Chrome, Firefox, and Edge. However with Safari it just looks bad and must be around 15 fps when rendering. A basic JSFiddle is here: https://jsfiddle.net/q5a9b62s/6/ The website I'm working on is here: http://www.allinimages.ch/ Thanks. 回答1: You could try using JavaScript to add a

Views getting darker when are pushed on navigation controller

守給你的承諾、 提交于 2019-12-22 04:11:53
问题 I'm pushing ViewControllers on NavigationController by segues. I have my own subclassed NavigationController which has inserted UIImageView at index 0 - it's a background for my entire application. The problem is that I can see that when new view controller is coming to the screen from the right side, in the beginning it's like having some light dark overlay which is disappearing when just after viewDidApear is called. Every view controller has a self.view.backgroundColor = [UIColor

D3 - Resetting an SVG object animation

怎甘沉沦 提交于 2019-12-20 06:24:40
问题 I'm making a graph with interactive markers. Each marker begins along the side axis, and when clicked moves to its place along the line and grows in size. I got the icons to move and grow, but am having trouble resetting the graph. I can make the icons go back to their original location with a second click, but the icons won't respond to anymore clicks after they've been clicked a second time. I suspect it's something simple, but I'm not seeing it. var coal = svg.append("svg:image") .attr(

Changing parent element's positioning prevents child element CSS3 transition in Firefox

狂风中的少年 提交于 2019-12-19 08:52:03
问题 In Webkit, the following fiddle works as expected. That is to say, #navigation's left padding is transitioned properly from 0 to 100px. In Firefox, the identical code somehow prevents the transition from occuring. http://jsfiddle.net/threehz/JEMN6/27/ my css: #navigation { background: #ccc; -webkit-transition: padding-left 0.125s ease; -moz-transition: padding-left 0.125s ease; transition: padding-left 0.125s ease; margin: 0; padding-left: 0; width: 100%; } .fixed #navigation { padding-left:

D3.js chain transitions for compound animations for different shapes

杀马特。学长 韩版系。学妹 提交于 2019-12-17 23:46:35
问题 What I'm trying to do... I'm toying with D3 to make a compound animation. I have the following final state: Essentially I want to animation connecting the dots - add the first circle . Then draw the line to the second circle. Once the line is drawn, the second circle is added. To add some visual appeal, I perform other transitions, such as changing circle radius for the first and second circle as the line is draw. What I've tried... I can add the circles and draw the line individually,

CSS3 Transitions: is there an on click option without using JQuery?

烈酒焚心 提交于 2019-12-17 18:52:36
问题 This works great: <style type="text/css"> div { width:100px; height:100px; background:red; transition:width 2s; -moz-transition:width 2s; /* Firefox 4 */ -webkit-transition:width 2s; /* Safari and Chrome */ -o-transition:width 2s; /* Opera */ } div:hover { width:300px; } </style> But does anyone know of a way to do this using click instead of hover? And not involving JQuery? Thanks! 回答1: You can write like this: CSS input{display:none} .ani { width:100px; height:100px; background:red;

How to transition scenes in Swift

大兔子大兔子 提交于 2019-12-17 15:57:16
问题 In Objective-C, using Sprite-Kit, I would successfully use something like the following code in Objective-C to bring up a new scene if ([touchedNode.name isEqual: @"Game Button"]) { SKTransition *reveal = [SKTransition revealWithDirection:SKTransitionDirectionDown duration:1.0]; GameScene *newGameScene = [[GameScene alloc] initWithSize: self.size]; // Optionally, insert code to configure the new scene. newGameScene.scaleMode = SKSceneScaleModeAspectFill; [self.scene.view presentScene:

Unbalanced calls to begin/end appearance transitions for UITabBarController

你说的曾经没有我的故事 提交于 2019-12-17 15:17:05
问题 I have an UITabBarController, when initial run, I want to overlay a login view controller but received error. Unbalanced calls to begin/end appearance transitions for < UITabBarController: 0x863ae00 >. Below is the code. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; //

Transition not working in IE

北城余情 提交于 2019-12-14 03:54:51
问题 I'm developing my own website, and one of the 'features' it has is that when I go with my mouse over the header, it slides down. This works well and good on all major browsers. However, with IE 10, it doesn't. Here's the page source: <?php echo "<html> <head> <title>memodesigns</title> <link rel='stylesheet' href='style/stylesheet.css'> </head> <body>"; include_once('modules/header.php'); echo " </body> </html>"; ?> This is the header file which is included: <?php echo "<div id =

Smooth update to x axis in a D3 line chart?

一笑奈何 提交于 2019-12-13 21:19:58
问题 I have an example animated line chart located here: http://www.animatedcreations.net/d3/animatedLineChart.html Everything is working as I would like it to, except that the redraw on the graph line is not smooth as in the example at the bottom of this page: http://bost.ocks.org/mike/path/. Another problem is that the line and x axis are slightly out of sync. I am pretty sure the problem with code lies in how .attr("d", line) is updated. Any help would be very much appreciated - I've been stuck