All Questions
433
questions
0
votes
1
answer
41
views
How to keep a HTML Submenu Opened When Clicking on Other
I am trying to keep the submenu open when opening another submenu.
Currently, my code closes all previously opened submenus when trying to open another one.
Right now, my code closes any previously ...
0
votes
0
answers
86
views
How to make a div slide into the viewport, without knowing its height
I need the CSS code for the green box. The green box should be almost complete invisible, if you click on the visible area, then the rest should slide up.
The height of the green element should be ...
0
votes
2
answers
88
views
jQuery infinite slideUp and slideDown without clicking
I have a title that is in the h3 tag. My code works using slideUp but slideDown looks so bad. I want the slideDown animations smooth like in slideUp. Basically, slideDown from the last array to the ...
0
votes
1
answer
28
views
jQuery slideToggle current div and slideUp the rest divs that are visible
I am trying to build a FAQ page where there is a div, on click it should slideToggle another div inside of it for visibility.
Once if it is clicked I want any other divs except this one, that are ...
1
vote
1
answer
903
views
How to slow down dropdown box by CSS or jQuery
I have built a dropdown button,but have no idea how to slow the the dropping process:
Html:
<div class="dropdown">
<button onclick="myFunction()" class="dropbtn"&...
1
vote
1
answer
171
views
Jquery can't close div on click again
I am trying to close a div by clicking a button with SlideUp function.
But when I click on button it opens as expected and closes other divs. But doesn't close it re-opens itself.
Here is my html code
...
0
votes
3
answers
104
views
Black background slide up
It is probably very simple but i'm stuck trying to make a homepage automatic background slider like here : https://www.jackdavison.co.uk
That's probably Jquery but I found a way to have something ...
0
votes
3
answers
213
views
Close box by clicking out side of the box
I like to close box by cliking out side of the box.
First 2 scripts are open/close and some decoration of button.They works fine.
Now, on 3rd script, Im trying to close box by cliking out side of ...
1
vote
0
answers
43
views
slideDown works, but when I change to slideUp, it stops working
I have 2 small divs, side by side in a bigger div, display flex. I want one of the small divs to appear by sliding up, and the other by sliding down. They both work fine when sliding down, but when I ...
0
votes
2
answers
67
views
Why is the variable not registering as true to make the second if statement work?
I am trying to create a slider menu, which slides up from bottom (footer) to top, and when clicked on, goes back to the bottom (footer).
The code I have works fine with the first if statement, it does ...
1
vote
1
answer
463
views
Dropdown menu - slideToggle challenge
Following is my code
$(document).ready(function(){
$('.submenu').hide();
$('.menu').click(function(event){
event.preventDefault();
$(this).children('.submenu').slideToggle(1000);
...
3
votes
0
answers
288
views
jQuery accordion issue on Safari
I have a very simply built an accordion using jQuery slideUp/slideDown. It works great in Chrome/Firefox, but there is a weird flash issue I get in Safari. It mainly occurs when you start at the ...
1
vote
1
answer
80
views
slideUp() slideDown() doesn't work properly
$(document).ready(function(){
$('.outer').click(function () {
$('.inner').slideUp();
/*alert("I BIMS");*/
});
});
* {
margin: 0;
padding: 0;
-webkit-box-sizing: border-box;...
1
vote
2
answers
51
views
Prevent jQuery script from running depending on condition
I have this script which should allow slideUp/slideDown for nested ul (dropdown menu) when window is larger than 800px and disable slideUp/slideDown functionality if window's width is less than 800px ...
4
votes
1
answer
14k
views
Uncaught TypeError: $(...).find(...).slideDown/slideUp is not a function [duplicate]
I have a simple image gallery where the figcaption is hidden on each image. Here is the HTML:
<figure>
<img src="gallery/reef2.jpg" width="400" height="285" alt="Another beautiful example ...