cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

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.

            
              <?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 15.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<html>
<body>
<center>
  <h1>SVG animated sliced color circle with mouseover event</h1>
  <p>Hover over the slices.</p>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
	 width="400px" height="400px" viewBox="0 0 400 400" xml:space="preserve">
<style>
#slice1:hover{
	cursor: pointer;
}
#slice2:hover{
	cursor: pointer;
}
#slice3:hover{
	cursor: pointer;
}
#slice4:hover{
	cursor: pointer;
}
#slice5:hover{
	cursor: pointer;
}
#slice6:hover{
	cursor: pointer;
}
#slice7:hover{
	cursor: pointer;
}
#slice8:hover{
	cursor: pointer;
}
#slice9:hover{
	cursor: pointer;
}
#slice10:hover{
	cursor: pointer;
}
#slice11:hover{
	cursor: pointer;
}
#slice12:hover{
	cursor: pointer;
}
#slice13:hover{
	cursor: pointer;
}
</style>
<rect x="0" y="0" width="400" height="400" fill="#3c3c3c"/>	 
<g id="colorwheel">
<path id="slice1" fill="#FCEA0D" d="M199.86,100v100l-46.48-88.56C167.26,104.13,183.08,100,199.86,100z">
	<animateTransform attributeName="transform" type="translate" from="0 0" to="-5 -20" begin="mouseover" dur="0.3s" repeatCount="1" fill=""/>
</path>
<path id="slice2" fill="#97BF0D" d="M199.86,200l-82.3-56.81c9.16-13.26,21.46-24.2,35.82-31.75L199.86,200z">
	<animateTransform attributeName="transform" type="translate" from="0 0" to="-12.5 -15" begin="mouseover" dur="0.3s" repeatCount="1" fill=""/>
</path>
<path id="slice3" fill="#008A2E" d="M199.86,200l-99.28-12.05v-0.01c1.98-16.49,7.97-31.74,16.98-44.75L199.86,200z">
	<animateTransform attributeName="transform" type="translate" from="0 0" to="-17.5 -7.5" begin="mouseover" dur="0.3s" repeatCount="1" fill=""/>
</path>
<path id="slice4" fill="#38A962" d="M199.86,200l-93.52,35.46c-4.19-11.02-6.48-22.97-6.48-35.46c0-4.08,0.24-8.1,0.72-12.05L199.86,200z">
	<animateTransform attributeName="transform" type="translate" from="0 0" to="-20 2" begin="mouseover" dur="0.3s" repeatCount="1" fill=""/>
</path>
<path id="slice5" fill="#39A9DC" d="M199.86,200l-66.31,74.84c-12-10.63-21.43-24.109-27.21-39.38L199.86,200z">
	<animateTransform attributeName="transform" type="translate" from="0 0" to="-17.5 12.5" begin="mouseover" dur="0.3s" repeatCount="1" fill=""/>
</path>
<path id="slice6" fill="#0C3183" d="M199.86,200l-23.94,97.11c-15.98-3.92-30.45-11.681-42.37-22.271L199.86,200z">
	<animateTransform attributeName="transform" type="translate" from="0 0" to="-10 17.5" begin="mouseover" dur="0.3s" repeatCount="1" fill=""/>
</path>
<path id="slice7" fill="#622181" d="M223.8,297.11C216.13,299,208.11,300,199.86,300c-8.25,0-16.27-1-23.94-2.89L199.86,200L223.8,297.11z">
	<animateTransform attributeName="transform" type="translate" from="0 0" to="0 20" begin="mouseover" dur="0.3s" repeatCount="1" fill=""/>
</path>
<path id="slice8" fill="#A10D59" d="M266.17,274.84c-11.92,10.59-26.39,18.351-42.37,22.271L199.86,200L266.17,274.84z">
	<animateTransform attributeName="transform" type="translate" from="0 0" to="10 17.5" begin="mouseover" dur="0.3s" repeatCount="1" fill=""/>
</path>
<path id="slice9" fill="#E41270" d="M293.38,235.46c-5.78,15.271-15.21,28.75-27.21,39.38L199.86,200L293.38,235.46z">
	<animateTransform attributeName="transform" type="translate" from="0 0" to="17.5 12.5" begin="mouseover" dur="0.3s" repeatCount="1" fill=""/>
</path>
<path id="slice10" fill="#E2001A" d="M299.86,200c0,12.49-2.29,24.44-6.48,35.46L199.86,200l99.28-12.06C299.62,191.89,299.86,195.92,299.86,200z">
	<animateTransform attributeName="transform" type="translate" from="0 0" to="20 2" begin="mouseover" dur="0.3s" repeatCount="1" fill=""/>
</path>
<path id="slice11" fill="#E7511E" d="M299.14,187.94L199.86,200l82.3-56.81C291.17,156.2,297.16,171.45,299.14,187.94z">
	<animateTransform attributeName="transform" type="translate" from="0 0" to="17.5 -7.5" begin="mouseover" dur="0.3s" repeatCount="1" fill=""/>
</path>
<path id="slice12" fill="#F29400" d="M282.16,143.19L199.86,200l46.48-88.56C260.7,118.99,273,129.93,282.16,143.19z">
	<animateTransform attributeName="transform" type="translate" from="0 0" to="12.5 -15" begin="mouseover" dur="0.3s" repeatCount="1" fill=""/>
</path>
<path id="slice13" fill="#F8B334" d="M246.34,111.44L199.86,200V100C216.64,100,232.46,104.13,246.34,111.44z">
	<animateTransform attributeName="transform" type="translate" from="0 0" to="5 -20" begin="mouseover" dur="0.3s" repeatCount="1" fill=""/>
</path>
<animateTransform attributeType="xml" attributeName="transform" type="rotate" from="360,200,200" to="0,200,200" begin="0s" dur="13s" repeatCount="indefinite"/></g>
</svg>

</center>  
</body>
</html>
            
          
!
            
              body{
  background-color: #000;
  font-family: raleway;
}
h1{
  color: #d0d0d0;
  font-weight: 200;
  font-size: 1em;
}
p{
  color:#999;
  font-size: 0.8em;
}
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console