color
Animated: ✔️
type | values | default |
---|---|---|
String | Object | any CSS color as String or Object to specify gradient | "#3f79ff" |
Defines the color of progress circle line. The property accepts any CSS color like #123
, rgba(230, 233, 240, 0.1)
or lime
or an Object to define gradients.
The general scheme to define the gradient is defined like follows:
:color="{ colors [, radial ]}"
radial
- defaultfalse
. Boolean that defines, whether the gradient is radial or linearcolors
- array that contains the gradient colors as Objects{ color: "#6546f7", offset: "10" [, opacity: 1] }
Usage: 📜
<ve-progress color="#3f79ff" />
<ve-progress color="lime" />
<ve-progress color="rgba(230, 233, 240, 0.1)" />
<ve-progress
:color="{
radial: false,
colors: [
{ color: '#6546f7', offset: '0', opacity: 1 },
{ color: 'lime', offset: '100', opacity: 0.6 },
],
}"
/>
Examples
The examples below demonstrate how gradient colors can be defined. Make sure to switch circle states to see, what cool loader affects you can achieve with gradient colors.
The gradients give a lot of room for experimentation and you can achieve a lot of exciting effects with colors alone. The following examples give some inspiration: