Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <script
			  src="https://code.jquery.com/jquery-1.12.4.min.js"
			  integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ="
			  crossorigin="anonymous"></script>
	<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/2.0.2/TweenMax.min.js"></script>

<div class="header container">
		<h1 id="title">Fretboard Roadmap - <span class="key"></span></h1>
      <button type="button" id="f_button" class="button"><span id="">F</span></button>
		<button type="button" id="g_button" class="button"><span id="">G</span></button>
		<button type="button" id="a_button" class="button"><span id="">A</span></button>
    </div>
  <div  id="f_major" class="container">
    
	  <div class="guitar_wrapper">
  
  		<svg id="Fretboard_Skeleton" xmlns="http://www.w3.org/2000/svg" viewBox="-8 -25 3035 700" height="300px">
  			<defs><style>.cls-1{fill:#27aae1;}.cls-1,.cls-2,.cls-5{stroke:#231f20;stroke-miterlimit:10;}.cls-2{fill:none;}.cls-3{opacity:0.53;}.cls-4{fill:#bcbec0;}.cls-5{fill:#ed1c24;stroke-width:3px;}</style></defs>
  				<title>guitar2</title>
  				
  					<rect id="Neck" class="cls-1" x="0" y="0" width="3000" height="615"/>
  						<g id="Fretlines">
  							<line id="fret-1" class="cls-2" x1="200" y1="615" x2="200" y2="0"/>
  							<line id="fret-2" class="cls-2" x1="400" y1="615" x2="400" y2="0"/>
  							<line id="fret-3" class="cls-2" x1="600" y1="615" x2="600" y2="0"/>
  							<line id="fret-4" class="cls-2" x1="800" y1="615" x2="800" y2="0"/>
  							<line id="fret-5" class="cls-2" x1="1000" y1="615" x2="1000" y2="0"/>
  							<line id="fret-6" class="cls-2" x1="1200" y1="615" x2="1200" y2="0"/>
  							<line id="fret-7" class="cls-2" x1="1400" y1="615" x2="1400" y2="0"/>
  							<line id="fret-8" class="cls-2" x1="1600" y1="615" x2="1600" y2="0"/>
  							<line id="fret-9" class="cls-2" x1="1800" y1="615" x2="1800" y2="0"/>
  							<line id="fret-10" class="cls-2" x1="2000" y1="615" x2="2000" y2="0"/>
  							<line id="fret-11" class="cls-2" x1="2200" y1="615" x2="2200" y2="0"/>
  							<line id="fret-12" class="cls-2" x1="2400" y1="615" x2="2400" y2="0"/>
  							<line id="fret-13" class="cls-2" x1="2600" y1="615" x2="2600" y2="0"/>
  							<line id="fret-14" class="cls-2" x1="2800" y1="615" x2="2800" y2="0"/>
  							<line id="fret-15" class="cls-2" x1="3000" y1="615" x2="3000" y2="0"/>
  							
  							</g>
  					<g id="Design">
  						<g id="fretdots" class="cls-3">
  							<ellipse id="fretdot" class="cls-4" cx="457.58" cy="332.56" rx="29.37" ry="32.98"/>
  							<ellipse id="fretdot-2" data-name="fretdot" class="cls-4" cx="2912.55" cy="327.11" rx="29.37" ry="32.98"/>
  							<ellipse id="fretdot-3" data-name="fretdot" class="cls-4" cx="863.03" cy="332.52" rx="29.37" ry="32.98"/>
  							<ellipse id="fretdot-4" data-name="fretdot" class="cls-4" cx="1685.3" cy="332.45" rx="29.37" ry="32.98"/>
  							<ellipse id="fretdot-5" data-name="fretdot" class="cls-4" cx="2291.32" cy="462.4" rx="29.37" ry="32.98"/>
  							<ellipse id="fretdot-6" data-name="fretdot" class="cls-4" cx="2291.3" cy="205.33" rx="29.37" ry="32.98"/>
  							<ellipse id="fretdot-7" data-name="fretdot" class="cls-4" cx="1274.16" cy="332.49" rx="29.37" ry="32.98"/>
  						</g></g>
  						<g id="Strings">
  							<line class="cls-2" x1="0" y1="123" x2="3000" y2="123"/>
  							<line class="cls-2" x1="0" y1="246" x2="3000" y2="246"/>
  							<line class="cls-2" x1="0" y1="369" x2="3000" y2="369"/>
  							<line class="cls-2" x1="0" y1="492" x2="3000" y2="492"/>
  						</g>
     <g id="roots"><g id="String_2" data-name="String 2">
  							<circle id="w-1" data-name="Finger" class="cls-5" cx="100" cy="0" r="22"/></g><g id="String_2-2" data-name="String 2">
  							<circle id="w-2" data-name="Finger" class="cls-5" cx="100" cy="615" r="22"/></g><g id="String_2-3" data-name="String 2">
  							<circle id="w-3" data-name="Finger" class="cls-5" cx="500" cy="369" r="22"/></g><g id="String_2-4" data-name="String 2">
  							<circle id="w-4" data-name="Finger" class="cls-5" cx="1100" cy="123" r="22"/></g><g id="String_2-5" data-name="String 2">
  							<circle id="w-5" data-name="Finger" class="cls-5" cx="1500" cy="492" r="22"/></g><g id="String_2-6" data-name="String 2">
  							<circle id="w-6" data-name="Finger" class="cls-5" cx="1900" cy="246" r="22"/></g><g id="String_2-7" data-name="String 2">
  							<circle id="w-7" data-name="Finger" class="cls-5" cx="2500" cy="0" r="22"/></g><g id="String_2-8" data-name="String 2">
  							<circle id="w-8" data-name="Finger" class="cls-5" cx="2500" cy="615" r="22"/></g>
  						</g>
  			</svg>
</div>
              
            
!

CSS

              
                @charset "UTF-8";
/* CSS Document */

body {
	margin: 0px;
	background-color: grey;
}

.header {
	
	margin-bottom: 20px;
	text-align: center;
	position: relative;
}


#fretboard {
	z-index: -1;
	position: absolute;	
	
}


.btn {
	
	
}

#Fretboard-container {
	position: absolute;
}


#green {
	background-color: green;
	height: 300px;
}

#btn_placement {
	position: relative;
	
}

#Scale_1_btn {
	position: absolute;
	top: 100px;
}

#btn_style {
	padding-top: 10px;
	
}

/*------Scale Positions-------*/

#scale1 {
position: absolute;
	z-index: -1;
}

#scale2 {
	position: absolute;
	z-index: -1;
}

#scale3 {
	position: absolute;
	z-index: -1;
}

#scale4 {
	position: absolute;
	z-index: -1;
	
}

#scale5 {
	
	position: absolute;
	z-index: -1;
}

#1st_triads {
	position: relative;
	
}

#roots {
	position: absolute;
	z-index: 0;
	
	
}



.subbutton {
	padding-top: 20px;
}

#pattern5 {
	
}



#title {
	text-align: center;
}

#scale_btn {
	
}

#note_btn {
	
}

#triad_btn {
	
}

#notebtn_mov {
	position: fixed;
}


#btn_mov {
	position: fixed;
	
}




.container {
	
}

#pattern4 {
	
}

#pattern1 {
	
	
}

#pattern2 {
	
	
}

#pattern_btn {
	position: fixed;
}

#pattern3 {
	
}


#roots2 {
	position: absolute;
	z-index: -1;
}

#scale6 {
	position: absolute;
	z-index: -1;
}

.triads {
	position: absolute;
	z-index: -1;
}


#4th_triads {
	position: relative;
}

#triad_menu {
	position: fixed;
}

.button {
    background-color: #00A14B; /* Green */
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    display: inline;
    font-size: 16px;
    margin: 4px 2px;

    cursor: pointer;
	
}

.button_default {
    background-color: white; 
    color: black; 
    border: 2px solid #00A14B;
} /*Created default for the scale button. I wanted different functionality than the actual scale pattern menu*/

.button_default:hover {
    background-color: #00A14B;
    color: black;
	
}

.button1 {
    background-color: white; 
    color: black; 
    border: 2px solid #00A14B;
}

.button1:hover {
    background-color: #00A14B;
    color: black;
	
}


.button2 {
    background-color: white; 
    color: black; 
    border: 2px solid #F7941D;
}

.button2:hover {
    background-color: #F7941D;
    color: black;
}

.button3 {
    background-color: white; 
    color: black; 
    border: 2px solid #663695;
}

.button3:hover {
    background-color: #663695;
    color: black;
}

.button4 {
    background-color: white;
    color: black;
    border: 2px solid #F5ED4E;
}

.button4:hover {background-color: #F5ED4E;
				color: black;
}

.button5 {
    background-color: white;
    color: black;
    border: 2px solid #754C29;
}

.button5:hover {
    background-color: #754C29;
    color: black;
}

.button6 {
	background-color: white;
    color: black;
    border: 2px solid red;
}

.button6:hover {
    
    color: black;
	
}

.button_root {
	background-color: white;
    color: black;
    border: 2px solid #ED1C24;
}

.button_root:hover {
    background-color: #ED1C24;
    color: white;
	
}

/*---------------------Triads--------------------*/

.button_triad1 {
	background-color: white;
    
    border: 2px solid #ED1C24;
}

.button_triad1:hover {
    background-color: black;
    color: black;
	
}

.button_triad2 {
	background-color: white;
    
    border: 2px solid #ED1C24;
}

.button_triad2:hover {
    background-color: black;
    color: black;
	
}

.button_triad3 {
	background-color: white;
    
    border: 2px solid #ED1C24;
}

.button_triad3:hover {
    background-color: black;
    color: black;
	
}

.button_triad4 {
	background-color: white;
    
    border: 2px solid #ED1C24;
}

.button_triad4:hover {
    background-color: black;
    color: black;
	
}

.triads_menu {
	background-color: white;
    color: black;
    border: 2px solid #ED1C24;
}

.triads_menu:hover {
    background-color: black;
    color: white;
	
}


#fret_num {
	position: absolute;
	z-index: 0;
	
}

.fretnum_style {
	display: inline;
	position: relative;
	text-align: center;
	
}


#f_major {
	position: absolute;
	z-index: -1;
	display: block;
}

/*-------Scale Key Selector----------*/

#f_button {
	position: relative;
	padding: 8px, 16px;
	background-color: white;
    color: black;
    border: 2px solid black;
    
	
}

#g_button {
	position: relative;
	padding: 8px, 16px;
	background-color: white;
    color: black;
    border: 2px solid black;
	
}



#root_txt_g {
	color:black;
}

#a_button {
	position: relative;
	padding: 8px, 16px;
	background-color: white;
    color: black;
    border: 2px solid black;
}


#letters {
	position: absolute;
	z-index: -1;
}
#letter_button {
	position: relative;
	padding: 8px, 16px;
	background-color: white;
    color: black;
    border: 2px solid black;
	display: inline-block;
}


.coming_button {
	position: relative;
	padding: 8px, 16px;
	background-color: white;
    color: black;
    border: 2px solid black;
	display: inline-block;
	opacity: .5;
}

#c_button {
	position: relative;
	padding: 8px, 16px;
	background-color: white;
    color: black;
    border: 2px solid black;
	
	opacity: .5;
}

#e_button {
	position: relative;
	padding: 8px, 16px;
	background-color: white;
    color: black;
    border: 2px solid black;
	
	opacity: .5;
}

#b_button {
	position: relative;
	padding: 8px, 16px;
	background-color: white;
    color: black;
    border: 2px solid black;
	
	opacity: .5;
}

#gb_button {
	position: relative;
	padding: 8px, 16px;
	background-color: white;
    color: black;
    border: 2px solid black;
	
	opacity: .5;
}

#db_button {
	position: relative;
	padding: 8px, 16px;
	background-color: white;
    color: black;
    border: 2px solid black;
	
	opacity: .5;
}

#ab_button {
	position: relative;
	padding: 8px, 16px;
	background-color: white;
    color: black;
    border: 2px solid black;
	
	opacity: .5;
}

#eb_button {
	position: relative;
	padding: 8px, 16px;
	background-color: white;
    color: black;
    border: 2px solid black;
	
	opacity: .5;
}

#bb_button {
	position: relative;
	padding: 8px, 16px;
	background-color: white;
    color: black;
    border: 2px solid black;
	display: inline;
	opacity: .5;
}

#d_button {
	position: relative;
	padding: 8px, 16px;
	background-color: white;
    color: black;
    border: 2px solid black;
	
	opacity: .5;
}

.key_f {
	display: none;
}

.key_g {
	display: none;
}

.key_a {
	display: none;
}

#major_button {
	position: relative;
	padding: 8px, 16px;
	background-color: white;
    color: black;
    border: 2px solid black;
	display: inline-block;
}

.key_buttons {
	display: none;
	
}

#keywords {
	display: none;
}

line {
	color: black;
	stroke-width: "3px"
	}
	
.guitar_wrapper {
	width: 50%;
	margin: 0 auto;
	
}

.roots {
	fill:#ed1c24;
	
}

.Finger{
	transform: translate(500px 0px);
}

svg {
	transform: translate(50px 500px)
	;
}

              
            
!

JS

              
                var roots = '.cls-5';

$('#f_button').click(function() {
  TweenMax.to(roots, 0.2, {x:0});
});
$('#g_button').click(function() {
  TweenMax.to(roots, 0.2, {x:400});
});
$('#a_button').click(function() {
  TweenMax.to(roots, 0.2, {x:800});
});
              
            
!
999px

Console