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

Testing #5

Merged
merged 2 commits into from
Nov 23, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Component } from '@angular/core';
*/
@Component({
selector: 'image-loader-spinner',
styles: ['@-webkit-keyframes image-loader-animation{0%{opacity:1}100%{opacity:0}}@keyframes image-loader-animation{0%{opacity:1}100%{opacity:0}}.image-loader-spinner{position:relative;background:0 0;width:200px;height:200px;margin:auto;transform:scale(.25)}.image-loader-spinner>div{-webkit-animation:image-loader-animation .8s linear infinite;animation:image-loader-animation .8s linear infinite;top:80px;left:97px;width:6px;height:40px;background:#9c9c9c;border-radius:4px;position:absolute}.image-loader-spinner>div:nth-of-type(1){-webkit-animation-delay:-.4s;animation-delay:-.4s;-webkit-transform:rotate(0) translate(0,-60px);transform:rotate(0) translate(0,-60px)}.image-loader-spinner>div:nth-of-type(2){-webkit-animation-delay:-.35000000000000003s;animation-delay:-.35000000000000003s;-webkit-transform:rotate(22deg) translate(0,-60px);transform:rotate(22deg) translate(0,-60px)}.image-loader-spinner>div:nth-of-type(3){-webkit-animation-delay:-.30000000000000004s;animation-delay:-.30000000000000004s;-webkit-transform:rotate(45deg) translate(0,-60px);transform:rotate(45deg) translate(0,-60px)}.image-loader-spinner>div:nth-of-type(4){-webkit-animation-delay:-.25s;animation-delay:-.25s;-webkit-transform:rotate(67deg) translate(0,-60px);transform:rotate(67deg) translate(0,-60px)}.image-loader-spinner>div:nth-of-type(5){-webkit-animation-delay:-.2s;animation-delay:-.2s;-webkit-transform:rotate(90deg) translate(0,-60px);transform:rotate(90deg) translate(0,-60px)}.image-loader-spinner>div:nth-of-type(6){-webkit-animation-delay:-.15000000000000002s;animation-delay:-.15000000000000002s;-webkit-transform:rotate(112deg) translate(0,-60px);transform:rotate(112deg) translate(0,-60px)}.image-loader-spinner>div:nth-of-type(7){-webkit-animation-delay:-99.99999999999997ms;animation-delay:-99.99999999999997ms;-webkit-transform:rotate(135deg) translate(0,-60px);transform:rotate(135deg) translate(0,-60px)}.image-loader-spinner>div:nth-of-type(8){-webkit-animation-delay:-.04999999999999999s;animation-delay:-.04999999999999999s;-webkit-transform:rotate(157deg) translate(0,-60px);transform:rotate(157deg) translate(0,-60px)}.image-loader-spinner>div:nth-of-type(9){-webkit-animation-delay:0s;animation-delay:0s;-webkit-transform:rotate(180deg) translate(0,-60px);transform:rotate(180deg) translate(0,-60px)}.image-loader-spinner>div:nth-of-type(10){-webkit-animation-delay:.04999999999999999s;animation-delay:.04999999999999999s;-webkit-transform:rotate(202deg) translate(0,-60px);transform:rotate(202deg) translate(0,-60px)}.image-loader-spinner>div:nth-of-type(11){-webkit-animation-delay:99.99999999999997ms;animation-delay:99.99999999999997ms;-webkit-transform:rotate(225deg) translate(0,-60px);transform:rotate(225deg) translate(0,-60px)}.image-loader-spinner>div:nth-of-type(12){-webkit-animation-delay:.15000000000000002s;animation-delay:.15000000000000002s;-webkit-transform:rotate(247deg) translate(0,-60px);transform:rotate(247deg) translate(0,-60px)}.image-loader-spinner>div:nth-of-type(13){-webkit-animation-delay:.20000000000000007s;animation-delay:.20000000000000007s;-webkit-transform:rotate(270deg) translate(0,-60px);transform:rotate(270deg) translate(0,-60px)}.image-loader-spinner>div:nth-of-type(14){-webkit-animation-delay:.25s;animation-delay:.25s;-webkit-transform:rotate(292deg) translate(0,-60px);transform:rotate(292deg) translate(0,-60px)}.image-loader-spinner>div:nth-of-type(15){-webkit-animation-delay:.30000000000000004s;animation-delay:.30000000000000004s;-webkit-transform:rotate(315deg) translate(0,-60px);transform:rotate(315deg) translate(0,-60px)}.image-loader-spinner>div:nth-of-type(16){-webkit-animation-delay:.35s;animation-delay:.35s;-webkit-transform:rotate(337deg) translate(0,-60px);transform:rotate(337deg) translate(0,-60px)}'],
styles: ['@-webkit-keyframes image-loader-animation{0%{opacity:1}100%{opacity:0}}@keyframes image-loader-animation{0%{opacity:1}100%{opacity:0}}.image-loader-spinner{display:block;width:40px;height:40px;transform:scale(.25)}.image-loader-spinner>div{-webkit-animation:image-loader-animation .8s linear infinite;animation:image-loader-animation .8s linear infinite;top:0;left:20px;width:6px;height:40px;background:#9c9c9c;border-radius:4px;position:absolute}.image-loader-spinner>div:nth-of-type(1){-webkit-animation-delay:-.4s;animation-delay:-.4s;-webkit-transform:rotate(0) translate(0,-60px);transform:rotate(0) translate(0,-60px)}.image-loader-spinner>div:nth-of-type(2){-webkit-animation-delay:-.35000000000000003s;animation-delay:-.35000000000000003s;-webkit-transform:rotate(22deg) translate(0,-60px);transform:rotate(22deg) translate(0,-60px)}.image-loader-spinner>div:nth-of-type(3){-webkit-animation-delay:-.30000000000000004s;animation-delay:-.30000000000000004s;-webkit-transform:rotate(45deg) translate(0,-60px);transform:rotate(45deg) translate(0,-60px)}.image-loader-spinner>div:nth-of-type(4){-webkit-animation-delay:-.25s;animation-delay:-.25s;-webkit-transform:rotate(67deg) translate(0,-60px);transform:rotate(67deg) translate(0,-60px)}.image-loader-spinner>div:nth-of-type(5){-webkit-animation-delay:-.2s;animation-delay:-.2s;-webkit-transform:rotate(90deg) translate(0,-60px);transform:rotate(90deg) translate(0,-60px)}.image-loader-spinner>div:nth-of-type(6){-webkit-animation-delay:-.15000000000000002s;animation-delay:-.15000000000000002s;-webkit-transform:rotate(112deg) translate(0,-60px);transform:rotate(112deg) translate(0,-60px)}.image-loader-spinner>div:nth-of-type(7){-webkit-animation-delay:-99.99999999999997ms;animation-delay:-99.99999999999997ms;-webkit-transform:rotate(135deg) translate(0,-60px);transform:rotate(135deg) translate(0,-60px)}.image-loader-spinner>div:nth-of-type(8){-webkit-animation-delay:-.04999999999999999s;animation-delay:-.04999999999999999s;-webkit-transform:rotate(157deg) translate(0,-60px);transform:rotate(157deg) translate(0,-60px)}.image-loader-spinner>div:nth-of-type(9){-webkit-animation-delay:0s;animation-delay:0s;-webkit-transform:rotate(180deg) translate(0,-60px);transform:rotate(180deg) translate(0,-60px)}.image-loader-spinner>div:nth-of-type(10){-webkit-animation-delay:.04999999999999999s;animation-delay:.04999999999999999s;-webkit-transform:rotate(202deg) translate(0,-60px);transform:rotate(202deg) translate(0,-60px)}.image-loader-spinner>div:nth-of-type(11){-webkit-animation-delay:99.99999999999997ms;animation-delay:99.99999999999997ms;-webkit-transform:rotate(225deg) translate(0,-60px);transform:rotate(225deg) translate(0,-60px)}.image-loader-spinner>div:nth-of-type(12){-webkit-animation-delay:.15000000000000002s;animation-delay:.15000000000000002s;-webkit-transform:rotate(247deg) translate(0,-60px);transform:rotate(247deg) translate(0,-60px)}.image-loader-spinner>div:nth-of-type(13){-webkit-animation-delay:.20000000000000007s;animation-delay:.20000000000000007s;-webkit-transform:rotate(270deg) translate(0,-60px);transform:rotate(270deg) translate(0,-60px)}.image-loader-spinner>div:nth-of-type(14){-webkit-animation-delay:.25s;animation-delay:.25s;-webkit-transform:rotate(292deg) translate(0,-60px);transform:rotate(292deg) translate(0,-60px)}.image-loader-spinner>div:nth-of-type(15){-webkit-animation-delay:.30000000000000004s;animation-delay:.30000000000000004s;-webkit-transform:rotate(315deg) translate(0,-60px);transform:rotate(315deg) translate(0,-60px)}.image-loader-spinner>div:nth-of-type(16){-webkit-animation-delay:.35s;animation-delay:.35s;-webkit-transform:rotate(337deg) translate(0,-60px);transform:rotate(337deg) translate(0,-60px)}'],
template: '<div class="image-loader-spinner"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>'
})
export class ImageLoaderSpinner {}
2 changes: 1 addition & 1 deletion src/components/img-loader/img-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export class ImgLoader implements OnInit {
this.renderer.setElementStyle(element, 'background-repeat', this.backgroundRepeat);
}

this.renderer.setElementStyle(element, 'background-image', 'url(\'' + imageUrl +'\')');
this.renderer.setElementStyle(element, 'background-image', 'url(\'' + imageUrl + '\')');
}
}

Expand Down