N
N
Ne0n5amura12016-07-12 18:14:15
User interface
Ne0n5amura1, 2016-07-12 18:14:15

How to make an out-of-white effect for an image with text?

How to make the image slowly appear from white along with the text when entering the site (Just an initial splash screen like "welcome, "username"" and a button to go to the resource)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Strukov, 2016-07-12
@Ne0n5amura1

Easier through animation.

@keyframes opacity {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.block-with-text {
  animation: opacity 1s;
}

W
WhiteSama, 2016-07-12
@WhiteSama

set show class after page load

img {
opacity: 0;
transition:1s;
}
img.show {
opacity:1;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question