K
K
kil20162019-12-23 16:24:05
MySQL
kil2016, 2019-12-23 16:24:05

How to make a window appear smoothly?

How to make a Div block appear smoothly
using CSS transition: all 2s ease; does not work !
varx = document.getElementById('block');
function mov(){
x.style.display = 'block';
}
document.getElementById('none').onclick = function (){
x.style.display = 'none';
}
setTimeout(mov, 1000);

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
luna3956, 2019-02-18
@sharomet

This is called a many-to-many relationship. A separate table is created that contains all products and their categories in the format ProductCategories(product_id, category_id). That is, you must remove the category_id field from the Products table and create a new table. This solution is considered correct and corresponds to the first normal form (the attribute must be atomic).

A
Alexander, 2019-12-23
@askyy

display block and will not work with transition. Use opacity, visibility

V
Vladimir, 2019-12-23
@HistoryART

Why make it so complicated? Create css animation and call it from js on event.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question