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

Progressbar animation from material design #490

Open
masterdany88 opened this issue Oct 15, 2020 · 0 comments
Open

Progressbar animation from material design #490

masterdany88 opened this issue Oct 15, 2020 · 0 comments
Labels
pro domino-ui pro

Comments

@masterdany88
Copy link

masterdany88 commented Oct 15, 2020

Hi. Can I ask for implementing progresbar animation:

https://material.io/components/progress-indicators

I have css for that:


.slider{
    position:relative;
    width:100%;
    height:5px;
    overflow-x: hidden;
}

.line{
    position:absolute;
    opacity: 0.4;
    background:#1562AD;
    width:150%;
    height:5px;
}

.subline{
    position:absolute;
    background:#1562AD;
    height:5px;
}
.inc{
    animation: increase 2s infinite;
}
.dec{
    animation: decrease 2s 0.5s infinite;
}

@keyframes increase {
    from { left: -5%; width: 5%; }
    to { left: 130%; width: 100%;}
}
@keyframes decrease {
    from { left: -80%; width: 80%; }
    to { left: 110%; width: 10%;}
}

and html:

<div class="slider">
                   <div class="line"></div>
                                       <div class="subline inc"></div>
                                                                  <div class="subline dec"></div>
                                                                                             </div>

I just dont know how to merge it with current Loader impl from domino:

Loader.create(this.element, LoaderEffect.ROTATION).setLoadingText(TRANSLATIONS.loading());
@vegegoku vegegoku added the pro domino-ui pro label Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pro domino-ui pro
Projects
None yet
Development

No branches or pull requests

2 participants