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

Change src #45

Open
buskami-dev opened this issue Jul 26, 2018 · 2 comments
Open

Change src #45

buskami-dev opened this issue Jul 26, 2018 · 2 comments

Comments

@buskami-dev
Copy link

Hi there,

How can I change the animation? I wanted to use my own image, can I just point to my images folder?
I tried to use the [template] but did not work

@buskami-dev
Copy link
Author

I got it working it’s just that the image does not appear centered as the original animation. What can I do to make my image to appear in the center of the page like the animation does?

@Edj209
Copy link

Edj209 commented Aug 31, 2018

In the template string you can define a css class such as 'custom-spinner-template' and make your css centering changes there.

in your component ts file:

template: string =<img class="custom-spinner-template" src="<path>/yourImage.gif" />;

in your component css file:

.custom-spinner-template { top: 43% !important; left: 45% !important; opacity: 1 !important; }

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