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

div appears but no animation #6

Open
halukkaramete opened this issue Oct 26, 2017 · 2 comments
Open

div appears but no animation #6

halukkaramete opened this issue Oct 26, 2017 · 2 comments

Comments

@halukkaramete
Copy link

halukkaramete commented Oct 26, 2017

Hi I went thru the steps on the angular 4.4 set up that I got on the local machine.

I see the div ( coming from the particles ) pushing down my content.
But it's got nothing in it. No errors on the console.

Chrome's Inspecter gives me this on that div.
What could be wrong do you guys think?

<particles _ngcontent-c7="" ng-reflect-width="100" ng-reflect-height="100">
        <div class="particles-container">
            <canvas d-particles="" style="width: 100%; height: 100%;" width="1378" height="690"></canvas>
        </div>
    </particles>
@halukkaramete
Copy link
Author

Fixed.

Instructions need to be corrected.

you have it as

<particles [style]="style" [width]="width" [height]="height" [params]="params">
</particles>

it should be

<particles [style]="myStyle" [width]="width" [height]="height" [params]="myParams">
</particles>

@halukkaramete
Copy link
Author

halukkaramete commented Oct 27, 2017

Another correction suggestion I'd like to make is this:

change these

'top': 0,
'left': 0,
'right': 0,
'bottom': 0,

to

'top': '0px',
'left': '0px',
'right': '0px',
'bottom': '0px',

you do need the px in there.

last but not the least, this is a fantastic work. And I want to thank you and ( all who have contributed to it ) for making it available to the angular 2+ world.

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