I'm working on an Electron app, attempting to create a sidebar. At first, only the arrow should be showing, while the rest of it is off the screen. When a user hovers over the arrow (displayed below), I want it to pull out the rest of the sidebar to be used by the user. However, I'm having a problem where because the browser window size remains the same, the css hover animation goes off the browser window and disappears. How can I translate the browser window on hover? Or if there is a better solution, please provide it.
Current Progress
Related
I'm trying to figure out how to prevent a popup image from poping up and down repeatedly (forever) when the user moves the mouse to a location on the page.
See https://codesandbox.io/s/jitterbug-on-popup-25kp4 to illustrate the problem. Hover over the text Mouse over this and the Jitter Image will appear to see the jitter problem.
EDIT: Since this was originally posted, I incorporated the solution into the code showing the problem, and now it also shows a solution.
Details
What follows is a text description of the problem, but the code does illustrates the problem as well (and with a lot less text).
On a web page, that has a vertical scroll bar,
The user moves the mouse over a div which has a MouseEnter javascript handler.
the on MouseEnter event fires which causes an image to pop up.
The popup causes the scroll bar to scroll the content. So now, the mouse is no longer hovering over the hover item so the MouseLeave event fires which causes the image to pop down.
With the image no longer being displayed, the scroll bar moves the content back to where it was prior to the popup and viola, the mouse is overtop of the div and the MouseEnter event fires again to pop up the image.
Steps 2-4 repeat forever at the speed at which the browser can keep up.
Or when the user moves the mouse to stop the popup/popdown from happening.
I've seen this happen on some other websites and now that it's happening to me, I want to fix it but I'm not sure how to.
I've searched for a solution but haven't found one yet. Here are some links I found:
https://css-tricks.com/content-jumping-avoid/ - This was good but suggests using min-height which doesn't work in my situation.
I've also tried using overflow: hidden which does prevent the jitter effect described above but leaves the user with no way to see the rest of the popup image. This, however, is a better solution than the jitter effect described above.
I'm using AngularJS and JQuery if that affects the answer.
position:absolute on the image, will solve this as it won't change the current flow when you display the image and the scroll bar will remain in it current position.
I have a custom slider, that is only shown when the user clicks on a certain font awesome button.This model works quite well for me. I add an event listener to the slider object for the focusout event, and then just show or hide the slider.
I do notice however that when the user resizes the browser screen, this is not seen as a focusout, because in this case my slider does not disappear ( I would like it to).
So my question is, what event will capture the resizing of the browser window, in order for me to hide my slider this way?
Thanks!
I am making a simple website and I am encountering a problem whenever I reload it.
I placed my menu at the middle of the screen and when you clicked it, it needs to go down to the content. My problem is, whenever I reload it, it would still go up and show the upper picture. What I want is that after one of the menu is pressed, the menu should now stay on the upper corner of the screen without showing the upper picture (Sample website -> http://ec2-54-84-168-45.compute-1.amazonaws.com/Teapop/)
It seems like my url code that directs it on a particular div (e.g menu#teapop_nav)` doesn't work as I expected after I deployed it on the hosting site even though it works well on my local build.
Without using any javascript code, is there a fix for this using html5/css3?
Thank you.
i just tested it on my computer (chrome & firefox) and it seems to work. And also on page refresh. The picture is always on the top.
How to make a prog. for popup window when mouse cursor moves over a specific area of the image a liitle window (popup) should open. when another area of same image different popup should open.
Using an unordered list, a couple of images, and a little CSS, we can
create an accessible "image map" with pop-up tool tips that provide
our readers more information on the links the map contains.
http://csshowto.com/effects/css-image-maps-with-pop-up-tool-tips/
I added a Like button to a friend's website. In all browsers (IE7-8-9, Firefox 6, Chrome), if a visitor is logged into their FB account, a box with a scroll bar appears next to the Like button and remains visible. It's hard to see what is in the box, but it appears to be my own Facebook page. Can this box be removed or a setting changed so it doesn't show?
The login button actually has a different state when you're logged in. I'm going to assume that you've set the size of the button div via CSS. If you've done that, then you'll get that effect. Play with the width/height values of the container.