Skip to main content

Questions tagged [css-transitions]

CSS Transitions allows property changes in CSS values to occur smoothly over a specified duration.

css-transitions
-5 votes
0 answers
32 views

How can I transition height: 0; to height: auto; using tailwind CSS? [closed]

I'm trying to implement a dropdown menu with smooth open and close transitions using Tailwind CSS in a Next.js application. Currently, I have the following structure: <div className={`flex items-...
Manohar Lal's user avatar
0 votes
1 answer
27 views

Trying to access CSS attribute value in JS, can't use it outside of 'DOMContentLoaded' event

I am trying to access the transition duration property of an element in my scene. The problem is, when trying to get it without the 'DOMContentLoaded' event listener, it returns 0 or a blank string. ...
Shachar's user avatar
0 votes
0 answers
11 views

react-spring -leave event not working as expected

enter image description hereenter image description here Please help to make it animation as attached image, I tried with @react-spring/web library - useTransition leave config seems it's not working ...
Hiral Trivedi's user avatar
1 vote
1 answer
47 views

Scroll to target horizontally with jQuery

Trying to revolutionize the world of carousels by creating something super simple and semantic that simply works with anchor links. It works mostly, but it jumps to the href rather than scrolling ...
DeanH's user avatar
  • 493
0 votes
0 answers
33 views

Angular :enter and :leave transitions not working (v. 18.0.5)

I am trying to create an :enter and :leave fade-in and fade-out transition for an HTML element, but it doesn't seem to work. Or in some cases works unexpectedly... This is the HTML in my template: <...
szuhaydv's user avatar
0 votes
1 answer
35 views

Animated flexbox order to make a smooth scrolling infinite scroll

I'm trying to make an infinite scroll carousel. Let's say it has three items & the HTML is: document.querySelectorAll('.buttons .button').forEach((button) => { button.addEventListener('...
user18102663's user avatar
1 vote
1 answer
44 views

Match up ease-in-out with ease-out

I have two elements with animation. The first elements animation lasts 1 second and has an easing curve of cubic-bezier(0.5, 0, 0.5, 1) (easing in and out). The second elements animation starts 0.5s ...
CatHat's user avatar
  • 35
2 votes
1 answer
29 views

Transition on a Pagination in React

I try to style button which is active in that way that I have a small transition on it when it gets that attribute but I can't get it. Same on the paragraph which is being rendered from the data file ...
Shota Jokhadze's user avatar
0 votes
1 answer
36 views

transitioning underline for sub menu items stretch across its container width, not the width of item name

I'm not sure where I've gone wrong but I did have my submenu items with a line after/underneath them which would transition to be the width of the word see here: working Ive made some changes to class ...
Garreth's user avatar
1 vote
1 answer
53 views

Transitioning an accordion content with "allow-discrete" value for "display" property

I have an accordion in which content is visually hidden and shown using transitions on grid-template-rows from 0fr to 1fr values. It's inspired by a solution made by Kevin Powell on its youtube ...
Luca Detomi's user avatar
  • 5,636
0 votes
0 answers
22 views

Scroll Magic transition issues with full screen background videos

I have an issue with animations on scroll magic being funky when scrolling back UP. So in the JSFiddle attached you'll see the animations looks fine on the way down. However on the way up it sort of ...
whitebuffalowanderer's user avatar
0 votes
0 answers
19 views

vue TransitionGroup scaleY() works, but scale() and scaleX() don't

I have a Vue 3.4.27 and with a as an unordered list. If I set the css up to use scaleY(0) it works. If I use scale(0) or scaleX(0) vue is somehow adding a translateX() in so that the it both scales ...
Bob Ramsey's user avatar
0 votes
1 answer
62 views

React doesn't trigger animation on position absolute element

I'm trying to add a transition to heroTitle and heroBtn but it doesn't seem to trigger, if I console.log ''element.current'' it shows that the styles have been updated but the current element being ...
Angel's user avatar
  • 15
1 vote
3 answers
68 views

Want to change animation speed of all child elements on hovering on the parent element

body { padding: 300px; background-color: rgb(15, 19, 24); } .m { display: flex; justify-content: center; align-items: center; transition: all 0.8s ease-in-out; } .m * { transition: all ...
Anhad Sharma's user avatar
0 votes
2 answers
32 views

Transtion effect not working on hover in html css

I want to do some slow smooth transition when hover on .bg-gradient and same when i remove cursor from hover but its come quick gone quick on hover. .asc { height: 500px; background-position: ...
MR Lappy's user avatar

15 30 50 per page
1
2 3 4 5
421