Skip to content

Tag: css

Slow down scrolling page via click in javascript

I can’t find solution how to slow down scrolling on my example. When i click wherever on my picture there are link that scrolling down to text. How can i slow it down on my example? JDFiddleDemo HTML code: JS : I have function scrollInView but it looks like not works on my example. How can i do that on

the layout of the page does not change with js

Basically I have written a basic code but cannot figure out where is the issue causing it not to work. so I have the following DOM snippet and my script is working as following I have taken container by is and not the body because i have the header and the footer in the page that i would like to

problem with circular rotating text on browser resize

I have a circle of text that rotates as you scroll down the page which is working absolutely fine. I have set the text to ‘display: hidden’ when the browser width is below 768px, if you decrease the browser width to below 768px it is hidden, then once increased it is visible again, this is working…

Show/hide between two elements randomly onload

I have two elements, .a and .b. By default, both elements have display: none. I want to make one of the two appear randomly when the page loads. Sometimes .a appears, sometimes .b appears, by giving the class .c which will provide display: block. This is what I have tried but failed because sometimes both are…

CSS box model issue

I have been trying to figure out the CSS for one of my projects. I have a class ‘header-container’ applied to the div container which on checking is as follows – I have a query on why are the contents of the ‘wrapper’ div which is the child of ‘header-container’ div, …

How to customize Dropzone js?

How do I customize Dropzone js? I searched for hours, but only gone in loops. I’m trying to go from this… To something like this… I don’t need the background or any fancy styles, and the functionality already works. I Just mainly need the files to be like they are in the red box. But I…