css-transitions

CSS transition table-row height

社会主义新天地 提交于 2021-02-09 11:59:47
问题 I have a CSS table. All the rows are the same height, but when a user clicks on one, the selected row should take up the entire table height and the rest of them should fade away. I had it working by simply setting display:none on all the other rows, but I'd like to do something with transitions. I've tried setting max-height to 100% and then changing it to 0, but it only makes the selected row slightly bigger than the rest while the rest stay where they are. I've tried changing the height

CSS transition table-row height

不羁的心 提交于 2021-02-09 11:59:35
问题 I have a CSS table. All the rows are the same height, but when a user clicks on one, the selected row should take up the entire table height and the rest of them should fade away. I had it working by simply setting display:none on all the other rows, but I'd like to do something with transitions. I've tried setting max-height to 100% and then changing it to 0, but it only makes the selected row slightly bigger than the rest while the rest stay where they are. I've tried changing the height

Cut a CSS transition short?

一世执手 提交于 2021-02-08 23:40:47
问题 I'm applying a CSS transition to an element. target.style.transition = "color 10000ms ease"; target.style.color = "red"; Under certain circumstances, I want the end state of this transition to be reached immediately, without waiting for the transition to finish. If I try target.style.transition = "color 0ms"; target.style.color = "red"; the current transition just continues. Doing target.style.transition = "color 0ms"; target.style.color = "blue"; sets it to 'blue' immediately, while target

Flexbox align-self property not transitioning?

孤街浪徒 提交于 2021-02-08 18:45:26
问题 I've tried creating a morphin "button", which slides on a further menu. The idea was based on Codrops Morphing Buttons Concept Now It's almost set up and there are only 2 minor things that annoy me: When "closing" the menu the buttons drop to the bottom immidiately although I've set the align-items property in the transition. Does Flexbox not support transition on said property? The glyphicon doesn't adjust itself with align-items and justify-center therefore I've had to get it done dirty by

Flexbox align-self property not transitioning?

北城以北 提交于 2021-02-08 18:33:06
问题 I've tried creating a morphin "button", which slides on a further menu. The idea was based on Codrops Morphing Buttons Concept Now It's almost set up and there are only 2 minor things that annoy me: When "closing" the menu the buttons drop to the bottom immidiately although I've set the align-items property in the transition. Does Flexbox not support transition on said property? The glyphicon doesn't adjust itself with align-items and justify-center therefore I've had to get it done dirty by

Flexbox align-self property not transitioning?

家住魔仙堡 提交于 2021-02-08 18:29:24
问题 I've tried creating a morphin "button", which slides on a further menu. The idea was based on Codrops Morphing Buttons Concept Now It's almost set up and there are only 2 minor things that annoy me: When "closing" the menu the buttons drop to the bottom immidiately although I've set the align-items property in the transition. Does Flexbox not support transition on said property? The glyphicon doesn't adjust itself with align-items and justify-center therefore I've had to get it done dirty by

Callback after the style has been rendered

╄→гoц情女王★ 提交于 2021-02-08 06:33:18
问题 All non-transition styles should be applied and rendered before applying transition styles. That's why such callback should exist. demo <button class="toggle">toggle</button> <div class="overlay"></div> .overlay { width : 400px; height : 400px; background : gray; display : none; opacity : 0; transition : opacity 0.3s ease-in-out; } .overlay.visible { opacity : 1; } var overlay = $(".overlay"); $(".toggle").click(function() { if (overlay.hasClass("visible")) { overlay.removeClass("visible")

Tabs background-color slide transition to next tab

人走茶凉 提交于 2021-02-07 19:14:59
问题 I am trying to achieve a background transition where, when you click on a tab the background of the current tab slides to the tab that is clicked. Can anyone help? *, *:before, *:after { box-sizing: border-box; } .radio_wrap {} input { position: absolute; opacity: 0; } label { min-width: calc(100% / 4); position: relative; float: left; text-align: center; text-shadow: none; padding: 20px; border: 1px solid #dfe0e4; color: grey; font-size: 14px; position: relative; transition: background-color

CSS pseudo class for leaving hover

偶尔善良 提交于 2021-02-07 06:53:19
问题 I have a nice little hover effect on my website that quickly transitions in as the user hovers over a link. But when the user leaves hovering over the box, the shadow (and other traits) go away immediately, instead of fading back out. Is there a way I can get the properties to fade both in AND out, maybe using some sort of :un-hover type pseudo class? Thanks! And here is the CSS block if it helps: a.squares:hover, a.squares:active { color: black; background-color: #E8E8E8; box-shadow: 0 0

CSS pseudo class for leaving hover

萝らか妹 提交于 2021-02-07 06:53:15
问题 I have a nice little hover effect on my website that quickly transitions in as the user hovers over a link. But when the user leaves hovering over the box, the shadow (and other traits) go away immediately, instead of fading back out. Is there a way I can get the properties to fade both in AND out, maybe using some sort of :un-hover type pseudo class? Thanks! And here is the CSS block if it helps: a.squares:hover, a.squares:active { color: black; background-color: #E8E8E8; box-shadow: 0 0