Skip to content

Instantly share code, notes, and snippets.

@keirbowden
Created April 6, 2019 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keirbowden/669edf0317da6ec6c6562ac05a57af50 to your computer and use it in GitHub Desktop.
Save keirbowden/669edf0317da6ec6c6562ac05a57af50 to your computer and use it in GitHub Desktop.
Animated Progress Bar Lightning Web Component Markup
<template>
<div class="slds-m-around_small">
<div class="slds-text-heading_large slds-m-bottom_small">Progress Bar Demo</div>
<div class="slds-m-bottom_large">
<label>Enter value : <lightning-input type="number" name="seven" value="0" placeholder="Enter the amount..." onchange={handleInputValueChanged}></lightning-input></label>
</div>
<div>
<div style="width:25%" class="slds-progress-bar slds-progress-bar_circular slds-progress-bar_large"
aria-valuemin="0" aria-valuemax="100" aria-valuenow={amount} role="progressbar">
<span class="slds-progress-bar__value" style={width}>
<span class="slds-assistive-text">Progress: {value} %</span>
</span>
<div class="slds-text-align_center">{value}
/
100</div>
</div>
</div>
</div>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment