Skip to content

Tag: html

How to show div again when scroll using vh?

I am trying to make a horizontal transition when scrolling down and up to show and resize (shrink) div of the first element. I used inline-block to put them in the same position so that when one has been shrunk the other element will slide through but I am a bit confused to achieve this. I tried to calculate …

Flipping all cards, but want to flip one by one

I am trying to flip these cards one by one, but they are flipping all together. I believe I am missing something on my javaScript. On the original code I am using images in front and an unordered list in back, I tried to resume it here writing only “Front” and “Back”. Do you guys know …

arranging s around a polygon (HTML, css, .ejs)

I want to arrange some rectangular div components around a regular polygon. Basically one of the long sides of the divs will be coincident with a line segment around the polygon. In the final code, I’ll use .ejs (since the number of sides of the polygon is dynamic, 3-10 sides). In my “quick and di…

How to make this timer start itself soon as page loads

How can this particular code work on page load itself and even on refresh of page timer value remains ticking only when click submit it stops? I guess we need to store the timer on localStorage and destroy storage on click submit? Answer You need to set the variable in localStorage not just the name I have co…

Change div height back to dynamic

I have the code below to change the height of a div to equal that of its parent. The problem is that the height of the child element #infocol, is no longer dynamic if i load new content inside of it. Is there a way to make the child element dynamic again after i have set the height with the