Skip to content

[css-round-display][motion-path] Apply offset-path to specify the shape of progress element #429

@jihyerish

Description

@jihyerish

There are various shapes of progress bar used in the smart watch and the car dash board. [1]
To implement those kinds of progress bar, generally there are 2 ways.

But those ways have poor performance to be applied in the smart watch and cause complicated and lots of code lines.

So there are requests to solve this problem from developers in LG, other manufacturing companies like Samsung.
Samsung has their own API to implement the circle progress component. [2]

I have an idea about specifying the shape of the progress bar using offset-path.
I suggest a new pseudo element, '::path' which can transform the shape of the progress element.
When the pseudo element is applied, the path specified by 'offset-path' decides the shape of the element.

For example, for the circular progress bar [3], it could be specified like:

HTML:
< progress value=“30" max=“100" >

CSS:
progress ::path{
offset-path: circle(100px);
/* circle of radius 100px */
}

Would it be possible to do?

[1]
image

[2] CircleProgressBar component in Samsung Tizen API
https://developer.tizen.org/development/api-references/web-application?redirect=/dev-guide/2.4/org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_circleprogressbar.htm

[3]
image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions