transition

background-size transition on hover causes chrome to “shake” background image

匿名 (未验证) 提交于 2019-12-03 02:30:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to achieve an effect I saw recently, where background image zooms on hover. I pretty much did it with example here: https://jsfiddle.net/qyh6nbwt/ but it seems to be very shaky (you will understand what I mean by hovering over it), I'm on osx running latest chrome version, have not checked it in other browsers yet. Is there a way to make it smoother, so it doesn't "shake" on zoom in? HTML <div id="example"> test </div> CSS #example { background-image: url(http://www.jeroenkemperman.nl/wp-content/uploads/2014/06/Johns_Inc_Pizza

Disable window and transition settings

匿名 (未验证) 提交于 2019-12-03 02:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: So what I need to do is toggle window and/or transition animations on and off in code, to have the same effect of going Settings > Display > Animations > Disable all animations. The way I am familiar with changing device settings is by using a ContentResolver within the Settings.System.putInt() method as follows: ContentResolver cr = getContentResolver(); Settings.System.putInt(cr, Settings.System.WINDOW_ANIMATION_SCALE, 0); As described in the documentation 'Setting to 0 will disable all .... animations' for both settings. When reading the

d3.js transition end event

匿名 (未验证) 提交于 2019-12-03 02:26:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am applying a transition to a group of nodes returned by selectAll() . I thought the end event would fire after all transitions finished, but each("end",function) gets called at the end of each transition. So is there any way to set a callback that will be called after transitions on all selected node finishes ? Should I use call for this? but I don't see it used as end callback anywhere in documentation. also I can run a counter inside each callback. but is there any way to know how many nodes are still pending to finish transition ? or

Stop animation and start transition on hover

匿名 (未验证) 提交于 2019-12-03 02:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a link that's running an infinite animation with the background color. I want to stop the animation and transition into a different background color on hover. .startlink{ background-color:#206a9e; color:#fff; border-radius:15px; font-family: 'Myriad Pro'; -webkit-animation:changeColor 3.4s infinite; -webkit-transition:all 0.2s ease-in; } .startlink:hover{ -webkit-animation-play-state: paused; background-color: #014a2a; } @-webkit-keyframes changeColor { 0% {background:#206a9e;} 50% {background:#012c4a;} 100% {background:#206a9e;} }

Toggle CSS3 fade?

匿名 (未验证) 提交于 2019-12-03 02:16:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Is it possible to use jQuery to toggle the opacity of an element (so that you can fade it in/out by the means of -webkit-transition:opacity .5s linear; ) and then change the display to display:block if the element is shown, or display:none if the element is hidden? For example: You click on an <a> tag, which shows a div by means of setting it's opacity to 1 and setting display:block . Then you click the <a> tag again, and it sets the opacity to 0 and then sets the display to none . My attempt at this is below: . visible { opacity :

CSS transitions do not work when assigned trough JavaScript

匿名 (未验证) 提交于 2019-12-03 02:11:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm having some major headache trying to apply CSS3 transitions to a slideshow trough JavaScript. Basically the JavaScript gets all of the slides in the slideshow and applies CSS classes to the correct elements to give a nice animated effect, if there is no CSS3 transitions support it will just apply the styles without a transition. Now, my 'little' problem. All works as expected, all slides get the correct styles, the code runs without bugs (so far). But the specified transitions do not work, even though the correct styles where applied.

CSS 3 slide-in from left transition

匿名 (未验证) 提交于 2019-12-03 02:11:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is there a cross browser solution to produce a slide-in transition with CSS only, no javascript? Below is an example of the html content: <div> <img id="slide" src="http://.../img.jpg /> </div> 回答1: You can use CSS3 transitions or maybe CSS3 animations to slide in an element. For browser support: http://caniuse.com/ I made two quick examples just to show you how I mean. CSS transition (on hover) Demo One Relevant Code .wrapper:hover #slide { transition: 1s; left: 0; } In this case, Im just transitioning the position from left: -100px; to 0;

CSS3 transition on click using pure CSS

匿名 (未验证) 提交于 2019-12-03 02:08:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to get an image (a plus symbol) to rotate 45 degrees to create a cross symbol. I have so far managed to achieve this using the code below but its working on hover, I wanted to have it rotate on click. Is there a simple way of doing so using CSS ? My code is: CSS img { display: block; margin: 20px; } .crossRotate { -webkit-transition-duration: 1s; -moz-transition-duration: 1s; -o-transition-duration: 1s; transition-duration: 1s; -webkit-transition-property: -webkit-transform; -moz-transition-property: -moz-transform; -o-transition

How to wait for a transition to end in javafx 2.1?

匿名 (未验证) 提交于 2019-12-03 02:00:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: My scene consists only of an ImageView , displaying an image. I would like to fade the image to black (assigned color of the scene), then after some time, fade from black to the image again. I found the FadeTransition very fitting for this purpose. This is a piece of my code: // fade to black transition FadeTransition ft1 = new FadeTransition(Duration.millis(2000), myImageView); ft1.setFromValue(1.0); ft1.setToValue(0.0); ft1.play(); // fade from black transition FadeTransition ft2 = new FadeTransition(Duration.millis(2000), myImageView);

CSS3 Transition - Fade out effect

匿名 (未验证) 提交于 2019-12-03 01:58:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am trying to implement the "fade out" effect in pure css. Here is the fiddle I did look into a couple of solutions online. However after reading the documentation online I am trying to figure out why the slide animation would not work. Any pointers ? Here is the HTML Saved The CSS . dummy - wrap { animation : slideup 2s ; - moz - animation : slideup 2s ; - webkit - animation : slideup 2s ; - o - animation : slideup 2s ; } . success - wrap { width : 75px ; min - height : 20px ; clear : both ; margin - top : 10px ; } . successfully