Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spinner + Ease-in transition #136

Open
Tanaan opened this issue Mar 24, 2017 · 0 comments
Open

Spinner + Ease-in transition #136

Tanaan opened this issue Mar 24, 2017 · 0 comments

Comments

@Tanaan
Copy link

Tanaan commented Mar 24, 2017

Hi there, I'm experimenting some problems when I try to use CSS in order to fade in the images after they are loaded. This work good but it does it on the tag, spinner included, but not on the image after is loaded. I mean, the effect is applied to the spinner. After the image is loaded, this is just shown but without any effect, because that was applied when we load tag. Am I doing something wrong? This is what I have

HTML

<div class="col-xs-12 workImage">
      <img src="images/spinner.gif" data-src="pictures/pic3.jpg" class="img-responsive" alt="" />
</div>

JS

$(function() {
 	$('.workImage').find('img').unveil(-300, function() {
		$(this).css( { 'opacity': 1} );
	});
 });

And CSS

.workImage img{
	opacity: 0;
  	transition: opacity 5s ease-in;
}

Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant