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

why paralax effect not work #46

Closed
SrSobrao opened this issue Mar 8, 2018 · 1 comment
Closed

why paralax effect not work #46

SrSobrao opened this issue Mar 8, 2018 · 1 comment

Comments

@SrSobrao
Copy link

SrSobrao commented Mar 8, 2018

var btnMetro = $('<div style="transform-style: preserve-3d;background-color: red;" class="live-tile"><span class="tile-title" style="text-align:center;font-size: 18px;">'+this.displayName+'</span><img class="full" style="transform: translateZ(50px) translateY(-55%) translateX(-50%);width: 96px;height: 96px;position: absolute;left: 50%;top: 50%;" src="'+this.icon+'"/></div>');

btnMetro.click(function(){
	self.run();
});
$(btnMetro).tilt({
		glare: true,
		perspective: 100,
		maxGlare: .5
});
$(document.body).append(btnMetro);

I need help to make it work in image inside

@SrSobrao SrSobrao changed the title why paralax not work why paralax effect not work Mar 8, 2018
@SrSobrao
Copy link
Author

SrSobrao commented Mar 8, 2018

I resolve it main container needs overflow visible

@gijsroge gijsroge closed this as completed Mar 8, 2018
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

2 participants