Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <div class="title">Change the score value to move the position</div>

<div class="container">
<svg version="1.1" id="gradBar" xmlns="" xmlns:xlink="" x="0px" y="0px"
	 viewBox="0 0 200 20" style="enable-background:new 0 0 200 20;" xml:space="preserve">
<linearGradient id="gradient" gradientUnits="userSpaceOnUse" x1="0" y1="10" x2="200" y2="10">
	<stop  offset="0" style="stop-color:#87124B"/>
	<stop  offset="0.5" style="stop-color:#EB5683"/>
	<stop  offset="0.75" style="stop-color:#FFE02A"/>
	<stop  offset="1" style="stop-color:#93C77E"/>

		<mask id="circleMask" x="0" y="0" width="100" height="100" >
			<circle id="maskIndicator" cx="10" cy="10" r="10" style="fill:#FFFFFF"/>

	<rect x="0" y="0" width="100%" height="100" style="fill:url(#gradient); mask:url(#circleMask)"/>
	<path d="M195,15H5c-2.761,0-5-2.239-5-5v0c0-2.761,2.239-5,5-5h190c2.761,0,5,2.239,5,5v0
	C200,12.761,197.761,15,195,15z" style= "fill:url(#gradient);"/>
	<circle id="circleIndicator" cx="10" cy="10" r="10" style="fill:none" stroke="#FFFFFF" stroke-width="1"/>


  padding-top: 30px;
  margin:0 auto;

.container {
  margin: 0 auto;
  width: 50%;


                //change the score
//to see the slider move
var score = 500

var percentageValue = (score/999)*180;

document.getElementById("circleIndicator").setAttribute("cx", percentageValue+10);

document.getElementById("maskIndicator").setAttribute("cx", percentageValue+10);