-
-
Notifications
You must be signed in to change notification settings - Fork 327
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
I need my confetti with in a particular div or component in angular 4 , How can i get that ? #70
Comments
I need my confetti with in a particular div or component in angular 4 , How can i get that |
You can create your own instance of The last example on the demo site also shows this scenario. // get a canvas that already exists on the page
var canvas = document.getElementById('custom-canvas');
var myConfetti = confetti.create(canvas, {
resize: true
});
myConfetti({
spread: 70,
origin: {
y: 1.2
}
}); |
@catdad So that can i position the canvas element where i want right ? i will check |
Correct, you can style your canvas any way you'd like. Take a look at this demo for reference. |
@catdad but can we put a few html elements behind this canvas-confetti using this method in that particular block? |
You can do anything you'd like. It's your web page. |
By default it covers entire viewport.
The text was updated successfully, but these errors were encountered: