Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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.


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.

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 id="quiver"></div>



                body {
  background-color: #FFB300;
#quiver, #flying {
  border: 1px solid green;
  height: 20px;
  color: red;
  width: 50px;
  height: 50px;

.arrow {
  background-color: #000;
  	background-image: url("");
  background-position: center;
  background-repeat: no-repeat;
  margin: 1.5em;


                var getQuiver = document.getElementById('quiver');

for(var i = 0; i < 300; i++){

function makeArrow (id){
 var newDiv = document.createElement('div');
 var newContent = document.createTextNode(" "); 
  // add the text node to the newly created div
  var quiver = document.getElementById('quiver');
  document.body.insertBefore(newDiv, quiver); 

var body =document.getElementsByTagName("body")[0];

body.onmousemove = function(event) {cursorFinder(event)};

function cursorFinder(e) {
    var x = e.clientX;
    var y = e.clientY;
    var theArrows = document.getElementsByClassName("arrow");
  for(var i = 0; i < theArrows.length; i++){
     var xShapeCenter = getPos(theArrows[i],'x');
     var yShapeCenter = getPos(theArrows[i],'y');
    theArrows[i].style.transform = 'rotate('+ twisterMath(x, y, xShapeCenter, yShapeCenter)+'deg)';
    theArrows[i].style.backgroundColor = 'rgba(0,0,0,' + changeColor(x,y, xShapeCenter,yShapeCenter)+')'; //prefered the red bg w 66,66,66 boxes but trying vcu brand colors

function getPos(el, pos) {
    // yay readability
    for (var lx=0, ly=0;
         el != null;
         lx += el.offsetLeft, ly += el.offsetTop, el = el.offsetParent);
     if (pos === 'x'){
       return lx
     } else {
       return ly

//from this crazy smart person
function twisterMath(x,y, xShapeCenter, yShapeCenter){
  return  Math.atan2(x - xShapeCenter,-(y - yShapeCenter)) *(180 / Math.PI)

function changeColor(x,y,xShapeCenter,yShapeCenter){
   //var percent =  Math.atan2(x - xShapeCenter,+(y - yShapeCenter)) / Math.PI;
  var percent =  Math.abs(y - yShapeCenter)/Math.abs(x - xShapeCenter) ;
  return percent;