Bug when using transition
#1521
-
Hi, Recently I was told that in the next weeks/months there will be an update to FUI where people will be able to build a custom This is a huge improvement! So, I decided to drop Using So I went ahead and used the same analogy to FUI - and it worked perfectly! If I just add the So I went ahead and wanted to change the duration of the transition. With
Since all the elements already have the
Then, animations didnt work smoothly any more and animations also didnt respect that duration of 3 seconds. Take this pretty minimalistc demonstration of the FUI doing a great job (without changing https://jsfiddle.net/mfz2r7yk/ Just https://jsfiddle.net/t2n8srzp/3/ You will see the animation does not take 3 seconds, and it also isnt smooth, it is not "fluid motion". I know that maybe I am not using this component the "right way" but it's pretty nice that it works without having to call the NOTE: I am aware |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
You're invoking the popup with JS, and the transition are handled by JS. The default settings for delay is 50ms while transitioning in and 70ms while transitioning out, and the transition mode is scale by default as per documentation (https://fomantic-ui.com/modules/popup.html#/settings). That's what you get in your fiddle (https://jsfiddle.net/t2n8srzp/3/). I guess, you would need to demonstrate the popup without invoking |
Beta Was this translation helpful? Give feedback.
-
@ko2in Thank you for your attention. I understood what you said and totally agree with you, however why does overriding the The default is 600 and despite the popup is being handled by JS, why changing this default value to any other value makes the transition bad? |
Beta Was this translation helpful? Give feedback.
-
@batata004 Your link is leading to irrelevant issue. |
Beta Was this translation helpful? Give feedback.
-
@batata004 I think this strange behavior is happening, because the popup module will still add inline CSS for the animation-duration, despite your own !important CSS setting, which confuses the browser. To fix your issue when still using If you don't want to set the
|
Beta Was this translation helpful? Give feedback.
-
My friend, I am really sorry. When I was typing the phrase "...that I reported on #1..." for some reason when I type hashtag and then the number 1, github will autofill with some number of an older issue. Then I hit enter to jump line and github accepted the first occurrence. On older forums (or on XDA) when you want to point to a specific comment in the same thread you use hashtag + number where the number is the position of that comment on the current thread! @lubber-de again thanks a lot! Your suggestion saved the day, now I can move on! Thank you so much and sorry for the confusion pointing to a "random" ticket number because I pressed enter. |
Beta Was this translation helpful? Give feedback.
-
This is available in the just now released 2.8.6 . Enjoy your even more reduced css file :) |
Beta Was this translation helpful? Give feedback.
-
@lubber-de that's awesome news! Now I will start optimizing several websites with this new build! Thanks a lot!!!! |
Beta Was this translation helpful? Give feedback.
@batata004 I think this strange behavior is happening, because the popup module will still add inline CSS for the animation-duration, despite your own !important CSS setting, which confuses the browser.
As @ko2in showed in his jsfiddle, when using the raw transition css classes, your css override for animation-duration works as expected.
To fix your issue when still using
.popup
, set theduration
tofalse
. This way the transition module won't create an inline style for animation-duration and will use your 3s given by your css valueIf you don't want to set the
duration:false
setting to every of your popup components, you could try to override the default setting for the popup module by