Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
98 views

I have a div containing an image. The image is user supplied so it can be tall or wide or square. By default I want to keep the image at a fixed 36px height, its width expanding as needed according to ...
marczellm's user avatar
  • 1,346
0 votes
1 answer
40 views

i want to apply transition on bootstrap columns width when open state changes, the transition works but it's sluggish, it's not smooth at all layout.js "use client"; import { useState } from ...
Morgana Freeman's user avatar
0 votes
1 answer
38 views

<section className="accessories bg-blue-600 p-8"> <div className="container max-w-7xl my-0 mx-auto"> <div className="accesories-wrapper"> &...
Mohamed Riyas's user avatar
0 votes
1 answer
127 views

I have a container where a fade is being applied on the right hand side but I want the fade to transition in. So on load the content is shown and then the mask-image transitions in smoothly. Any idea? ...
The Interactive DOM's user avatar
0 votes
1 answer
64 views

I have a simple static HTML page with JavaScript and CSS embedded: const outerBox = document.getElementById("outerBox"); const innerBox = document.getElementById("innerBox"); const moveOutBtn = ...
Mr. X's user avatar
  • 1,037
1 vote
4 answers
248 views

I have a button to toggle opening and closing of a dropdown menu with CSS transition. Suppose I have this HTML for a dropdown menu and a toggle button: <button type="button" id="main-...
user2526586's user avatar
  • 1,342
0 votes
1 answer
88 views

I've been trying to make my navbar responsive for mobile and decided it'd be good to make it a lateral bar when the width gets smaller. Also, in order to not having to change the code in every single ...
andrews's user avatar
0 votes
2 answers
58 views

:root { --success: #0c0; } button { border: 2px solid; border-radius: 10px; cursor: pointer; margin: 1em 0.5em; padding: 10px 15px; transition: transform 1s; } button:...
Eric Wang's user avatar
1 vote
1 answer
73 views

I am trying to animate a "left" to "right"-side rotation using transform-origin. More specifically, I would like to maintain the left side's rotation position when the transform-...
FakeEmpire's user avatar
2 votes
1 answer
166 views

(I'm still pretty new to HTML and CSS so bare with me) I've been trying to customize this website to make it more pleasing to the eye. One of the things I'd like to do is customize the drop down menus ...
Sarah Z's user avatar
  • 23
3 votes
1 answer
71 views

On my site, I have a container that holds multiple 'pages' of information. When a button is clicked, the current content page disappears and the next one appears on screen, allowing viewers to cycle ...
Jex's user avatar
  • 131
0 votes
1 answer
58 views

I have a button that changes the theme color on navBar and it's working. When I click the button, the background color changes faster then the text colors. The "Home", "Cadastros", ...
Luckkks's user avatar
  • 33
0 votes
1 answer
106 views

I am creating an accordion type of question and answers page for a recent project. The answer to the question is revealed by clicking on the question. My approach is to have the answer hidden with max-...
Sinister Pear's user avatar
1 vote
1 answer
71 views

Scenario I recently made an interesting observation in my CSS that took me a little while to understand exactly what was happening. For example, consider the following code snippet, in which the ...
glmvc's user avatar
  • 475
-1 votes
1 answer
91 views

I have created this dummy top nav bar, where i have multiple drop-down which can be scrollable on x axis via buttons if multiple . But when i open the dropdown it is being opened in scroll view for y ...
Arpit Mishra's user avatar
-1 votes
1 answer
78 views

I have build a sliding submenu with React, Typescript and Tailwind. The related submenu is showing using React useState hook. See the working code sandbox here. Why is my close css animation not ...
meez's user avatar
  • 4,888
0 votes
0 answers
47 views

I'm trying to create a layout where an aside element smoothly increases its width when hovered. The grid is set up using grid-template-columns: max-content 1fr, and I expect the aside element to ...
abdullah khan's user avatar
1 vote
1 answer
103 views

I want to show an animated text next to the button upon hovering the button. This works fine when I am using click event on button but doesn't work when using mouseenter and mouseleave events. I'm ...
Anmol Kansal's user avatar
0 votes
0 answers
58 views

I've used the code from this link: https://dev.to/ljcdev/easy-hamburger-menu-with-js-2do0 I've changed the TS part into this (I'm working with Angular): toggleMenu() { if (this.menu.classList....
librogil's user avatar
  • 153
1 vote
0 answers
56 views

I can't get CSS to work in one particular part of my project. Works fine with other components. index.tsx const toggleMenu = () => { setMenuOpen(!menuOpen); } return ( .... ...
Nazlul Rizan's user avatar
0 votes
0 answers
13 views

I created an accordion in React, but when I expand an item of it it takes a while before it collapses. Now, I found out why that takes a while. It's because the height of the hidden part (in this case,...
user avatar
0 votes
1 answer
527 views

i have a two forms, one for sendOTP and the other one for verifyOTP and the verify otp one is taller than the send otp. the height transition for my container is jumpy on getting back from second form ...
ali otadi's user avatar
1 vote
2 answers
96 views

I'm developing a website that will have a "learn more" button that's split in two, one part says "learn more" and the other says "+". When the mouse hovers over it the &...
Fátima M.T.T.'s user avatar
1 vote
0 answers
79 views

So I have a div that I want to expand (along with all elements it contains) when hovered over.. it's mostly working except at the start and end of the animation the background image 'jumps' to an odd ...
tobyallwood's user avatar
0 votes
3 answers
290 views

I am unable to get the circle bar to animate. I attempted adding transition: all 600ms ease; but that didn't work. I am not sure if CSS animation supports conic-gradient. jQuery(function ($) { $(...
Ahmed Al-Samarrai's user avatar

1
2 3 4 5
127