erica mitchell
Founder, blackGirlsCode(2), Javascript Enthusiast
Part 2
Please download workshop files here:
https://github.com/blackgirlscode
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> <script src="script.js"></script>
$(document).ready(function(event){ // jQuery code });
$('.feature'); // Class selector $('li strong'); // Descendant selector $('em, i'); // Multiple selector $('a[target="_blank"]'); // Attribute selector $('p:nth-child(2)'); // Pseudo-class selector
$( ' . f e a t u r e ' ) ; // C l a s s s e l e c t o r $( ' l i s t r o n g ' ) ;// D e s c e n d a n t s e l e c to r $( ' e m , i ') ; // M u l t i p l e s e l e c t o r $( ' a [ t a r g e t = " _ b l a n k " ] '); // A t t r i b u t e s e l ec t o r $( ' p : n t h - c h i l d ( 2 ) ' ); // Pseudo-class selector.box-1 {
tr a n s f o r m : s c a l e ( . 7 5 ); } . b o x - 2 {t r a n s f o r m : s c a l e ( 1 . 2 5 );
.box { background: #2db34a; transition-property: background; transition-duration: 1s; transition-timing-function: linear; } .box:hover { background: #ff7b29; }
By erica mitchell
Founder, blackGirlsCode(2), Javascript Enthusiast