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

Progress bars #23

Closed
Dogfalo opened this issue Oct 15, 2014 · 14 comments
Closed

Progress bars #23

Dogfalo opened this issue Oct 15, 2014 · 14 comments

Comments

@Dogfalo
Copy link
Owner

Dogfalo commented Oct 15, 2014

No description provided.

@davidsoderberg
Copy link

What are your toughts on this, maybe I can help?

@Dogfalo
Copy link
Owner Author

Dogfalo commented Jan 8, 2015

We are dealing with other parts of the framework right now so it would be great if you could help!

@davidsoderberg
Copy link

Sure, any toughts on this yet?

@acburst
Copy link
Collaborator

acburst commented Jan 8, 2015

Take a look at this http://www.google.com/design/spec/components/progress-activity.html#progress-activity-types-of-indicators under the linear section.

If you want, you could try making the indeterminate progress bar, and maybe some form of determinate progress bar where you can have some attribute or class that sets how full the percentage is.

@davidsoderberg
Copy link

Maybe we could make it an jquery plugin?

@Dogfalo
Copy link
Owner Author

Dogfalo commented Jan 8, 2015

I don't think jQuery should be necessary here.

On Thu, Jan 8, 2015 at 12:59 PM, David Söderberg notifications@github.com
wrote:

Maybe we could make it an jquery plugin?


Reply to this email directly or view it on GitHub
#23 (comment).

Doggy sends his greetings from Mars.

@davidsoderberg
Copy link

I thinking about setting width of progess, how that will be easy to make with css. 100 classes is not a good solution. We can set it on a div like this style="width: 80%; But that is not nice if you ask me...

@acburst
Copy link
Collaborator

acburst commented Jan 8, 2015

How about you just try making the indeterminate bar first and we can think about the other one after

@davidsoderberg
Copy link

Alright 😄

@davidsoderberg
Copy link

Alright here is a first try:
CSS:

.progress {
    position: relative;
    height: 5px;
    display: block;
    width: 100%;
    background-color: #c7c7c7;
    margin: 1em 0;
    overflow: hidden;
}
.indeterminate {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    -webkit-animation: indeterminate 1s linear infinite;
}

@-webkit-keyframes indeterminate {
    0% {
        -webkit-transform: translate(-100%);
    }
    50% {
        -webkit-transform: translate(0%);
    }
    100% {
        -webkit-transform: translate(100%);
    }
}

And HTML:

<div class="progress">                  
    <div class="indeterminate red"></div>
</div>

So what do you think?

@acburst
Copy link
Collaborator

acburst commented Jan 8, 2015

It's looking pretty good. Do you wanna try experimenting with some easing?

@davidsoderberg
Copy link

Sure but I thought I could do determinate first :)

@Dogfalo
Copy link
Owner Author

Dogfalo commented Jan 8, 2015

Also fee free to join our chat room here, where it is easier to have discussion about new features. https://gitter.im/Dogfalo/materialize

@Dogfalo
Copy link
Owner Author

Dogfalo commented Jan 9, 2015

Added in 0c4e9b9

@Dogfalo Dogfalo closed this as completed Jan 9, 2015
Smankusors pushed a commit to Smankusors/materialize that referenced this issue Oct 24, 2020
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

3 participants