All Questions
Tagged with visibility javascript
386
questions
8698
votes
67
answers
3.2m
views
How do I check if an element is hidden in jQuery?
How do I toggle the visibility of an element using .hide(), .show(), or .toggle()?
How do I test if an element is visible or hidden?
0
votes
0
answers
39
views
Detect browser out of focus
I want to detect when the browser goes out of focus. More specifically, here is my case:
I have my page opened and when I change the tab, it can be detected using visibilitychange. But when I go to ...
0
votes
0
answers
29
views
How do I hide an entire HTML page, but make the page still renders and still exist?
I'm making an extension to hide the ChromeOS bookshelf by displaying a completely hidden tab, so the device would register a window being drawn, but the user could not interact or notice it.
This is ...
2
votes
3
answers
498
views
JavaScript var visibility
Given this code:
function MyClass() {
var v = '1';
this.hi = function() {
console.log('Value of V is ' + v);
var v = '2';
console.log('Value of V is ' + v);
...
65
votes
9
answers
92k
views
How to wait for element to disappear in cypress? [duplicate]
I have a loading indicator that I need to wait for to disappear before doing my assertions.
I've seen some use the following, but it does not seem to work for me and also I don´t want it to be an ...
0
votes
0
answers
291
views
page elements transitioning to visibility when they appear on screen in sveltekit
I have a webpage where I have some buttons that I want to appear as the user scrolls down the page. My problem is effectively two-fold. First of all, as I have shown below, I need to work out when the ...
0
votes
0
answers
228
views
Apexcharts does not work with style visibility display = ‘none’
I have a simple web application using plain html/css/js (no framework). I have implemented a tabbed pane where the implementation is based on css turning visibility.display on/off.
In one of the panes ...
-1
votes
3
answers
297
views
Not able to override default timeout while using explicit wait mechanism in cypress
I am using cypress-wait-until plugin to apply explicit wait in our framework. When I use it and maximum time given is say 30000 milliseconds, so ideally it should wait maximum 300000 ms (30 seconds) ...
1
vote
2
answers
89
views
Hidden button not appearing under specified conditions
I have a small game and when all hearts are lost, a reset button should appear. I can't for the life of me figure out why it's not showing up. I rewrote it 3 times, wondering if it was how I was ...
27
votes
13
answers
54k
views
How can I check that an element is visible with Puppeteer and pure JavaScript?
I wish to check that a DOM element is visible with Puppeteer and pure JavaScript (not jQuery), how can I do this? By visible I mean that the element is displayed through CSS, and not hidden (f.ex. by ...
58
votes
7
answers
92k
views
jQuery css Visibility with animation
I have few div's placed underneath each other and I'm using css visibility to fade them in and out. The reason why I use visibility is so that the div's don't move place.
For fade In I'm using:
$('....
0
votes
0
answers
23
views
I read that 'hidden' comps cause issues in IE. What is the safest method to show/hide elements for cross browser compatibility?
I have several components such as tooltips and menus that are not always visible. I read somewhere that visibility = hidden can throw errors in IE but I don't know how accurate that is. If so, for ...
0
votes
0
answers
22
views
DOM Operation Unsuccessful - Show HTML in Element
Working code here is mixed with non-working code. The code works up until the line where it commands the innerText to be of
x.innerHTML.substring(3,-3)
This is the function I am calling on a click ...
-1
votes
1
answer
94
views
Using only javascript and css: can I enable the user to selectively display and hide divs of different classes, via a single drop-down menu?
I have an html page consisting of 80-100 css-styled divs each containing a grid with an image and information about a single artwork. (Each div already has a unique Id, to enable linking-in to a ...
0
votes
1
answer
50
views
How can I make an element's attribute only appear on hover when another element is hidden?
I'm having trouble figuring out how to make the data-title only appear on hovering of the up-arrow only when the footer is down/not showing. However, I would also appreciate another solution where the ...