css-transitions

Transition starting on page load for some reason

好久不见. 提交于 2020-05-31 03:44:48
问题 Update: when I put the CSS internally, the problem goes away. I went in the dev tools on my chrome and compared what was happening when I reloaded the page. First image is with internal CSS, the second one is with external stylesheet, you can see different results for the background-color property: Initial post: I have no idea why this is happening, here's a demonstration. Basically, the a takes some time to appear fully on the page. The time it takes to 'fully' appear is the same duration

React JS: How to animate conditionally rendered components?

ε祈祈猫儿з 提交于 2020-05-15 08:05:12
问题 Example is a functional component in which I am rendering a div conditionally. I want this div to fade-in when rendered conditionally and fade-out vice versa. For that, I have maintained two local state variables: render and fadeIn which are computed based on show prop passed down to the Example component. What I've done is: When show prop it true , I set render as true , so the div renders conditionally and after a timeout of 10ms I set fadeIn as true which will set CSS classname for my div

How to delay one transition but not the other?

柔情痞子 提交于 2020-05-09 03:24:20
问题 I have two transitions set for #circle . I want only the opacity to have a delay, but I can only make it where both of the transitions do. My full goal is to make the opacity change when the circle is mid spin (so at exactly 90deg). But I will work out the timing myself, I just want to know how to give the delay to only one transition . #circle { background-color:black; background-image:url('rain.img'); height:300px; width:300px; border-radius:100%; margin:0 auto; perspective:1000; transition

How to delay one transition but not the other?

痞子三分冷 提交于 2020-05-09 03:24:17
问题 I have two transitions set for #circle . I want only the opacity to have a delay, but I can only make it where both of the transitions do. My full goal is to make the opacity change when the circle is mid spin (so at exactly 90deg). But I will work out the timing myself, I just want to know how to give the delay to only one transition . #circle { background-color:black; background-image:url('rain.img'); height:300px; width:300px; border-radius:100%; margin:0 auto; perspective:1000; transition

css transition max-height back to 0 not working

末鹿安然 提交于 2020-04-10 05:37:08
问题 I have a simple div which has height and max-height set to 10px. When I hover over it, it should expand to the full height of div and when I leave it should shrink back to 10px. But the when I unhover, the code below won't transit smoothly back to 0. HTML <div class="animate"> Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney

Range input runner progress fill color

瘦欲@ 提交于 2020-03-03 14:00:53
问题 I'm working with the range input here I'm trying to add color to the slider thumb before I had tried using background gradient but unable to achieve the desired output. when if I remove max="5" then its working fine. below is my code var slider = document.getElementById("myRange"); var output = document.getElementById("demo"); output.innerHTML = slider.value; slider.oninput = function() { output.innerHTML = this.value; } .slider { -webkit-appearance: none; width: 100%; height: 15px; border

Card back hidden on first transition in chrome

最后都变了- 提交于 2020-02-25 13:13:13
问题 I'm developing a generic card that displays various content on the front and back. The card flips 180 degrees on a click. In Chrome, when I have content on the back that contains absolute or relative positioning, the back of the card only becomes visible at (or near) the end of the transition. In Safari and Firefox I don't see the same issue. The issue can be seen in this pen https://codepen.io/rumbletumble/pen/GRgNeLg I've tried Using animation rather than transition, but the same issue

Background-size transition not work in Chrome

谁说胖子不能爱 提交于 2020-02-06 03:41:30
问题 I'm trying to transition background-size and background-color . Chrome : Transition of background-size not working Firefox : Both are working fine I have also created a fiddle. .highlight { display: block; position: relative; /*min-height: 800px;*/ min-height: 200px; background-position: center center; background-repeat: no-repeat; /*padding-top: 200px;*/ padding-top: 80px; /*background-size: cover;*/ } .highlight:before { position: absolute; top: 0; left: 0; width: 100%; height: 100%;

Background-size transition not work in Chrome

吃可爱长大的小学妹 提交于 2020-02-06 03:40:18
问题 I'm trying to transition background-size and background-color . Chrome : Transition of background-size not working Firefox : Both are working fine I have also created a fiddle. .highlight { display: block; position: relative; /*min-height: 800px;*/ min-height: 200px; background-position: center center; background-repeat: no-repeat; /*padding-top: 200px;*/ padding-top: 80px; /*background-size: cover;*/ } .highlight:before { position: absolute; top: 0; left: 0; width: 100%; height: 100%;

Why is my CSS filter transition applying early in Safari?

a 夏天 提交于 2020-02-02 12:51:07
问题 I am trying to use css transition for filter and am getting some weird results in Safari, but works as expected in chrome. My CSS where I set the initial filter and transition (working codepen link below): transform: translate3d(-50%,-50%,0) scale(1); filter: blur(0px) contrast(1.1) sepia(0) saturate(1); transition: transform 1s ease-in-out 1s, filter 1s ease-in-out 1s; Safari is applying the filter as soon as the class with different filter atributes is added, but then after the transition