L
L
Luka Tarkhnishvili2016-07-19 12:06:36
PHP
Luka Tarkhnishvili, 2016-07-19 12:06:36

How to make all page content open at once?

There are 30 icons on the page, when I go to this page the icons open one by one, so it's noticeable to the eye. What advise, can install a loader? Or are there better ways to download all content at once?
(And besides this https://habrahabr.ru/post/137239/ )

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Entelis, 2016-07-19
@DmitriyEntelis

Merge icons into a common sprite.

A
Alex Sokol, 2016-07-19
@Sokol_ua

1. If there is no loader, then listen to onload - and show everything at once through display: block. Or animate opacity and translateY from 100px to 0;
2. Get the number of icons, reserve a place for them on the page with stubs (number of icons = blocks with a light image) and then load the rest into them
. In general, the loader is cool. tobiasahlin.com/spinkit

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question