EduardET

Untitled

Apr 2nd, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. ( function( $ ) {
  3.     $( document ).ready( function() {
  4.         var blurbs = $( '.wpc-blurb' ),
  5.             circles = $( '.et_pb_circle_counter canvas' );
  6.         blurbs.each( function() {
  7.  
  8.             $( this )
  9.                 .mouseenter( function() {
  10.                     var id = $( this ).attr( 'id' ).slice( -1 );
  11.                     circles.each( function() {
  12.                         $( this ).css( 'opacity', 0.4 );
  13.                     } )
  14.                     $( '#circle' + id + ' canvas' ).css( 'opacity', 1 );
  15.                 } )
  16.                 .mouseleave( function() {
  17.                     return
  18.                 } )
  19.  
  20.         } )
  21.     } );
  22. } )( jQuery );
  23. </script>
Advertisement
Add Comment
Please, Sign In to add comment