Interactions

In this example below you will see how to do a Interactions with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by VolodymyrBrylo, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright VolodymyrBrylo ©

Technologies

  • HTML
  • CSS
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>Interactions</title>
  
  
  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  <div class="ui-widget-content">
  <p><img src="https://jqueryui.com/jquery-wp-content/themes/jquery/images/logo-jquery-ui.png" alt="" /></p>
</div>

<div class="ui-widget-content">
  <p><img src="https://jqueryui.com/jquery-wp-content/themes/jquery/images/logo-jquery-ui.png" alt="" /></p>
</div>

<div class="ui-widget-content">
  <p><img src="https://jqueryui.com/jquery-wp-content/themes/jquery/images/logo-jquery-ui.png" alt="" /></p>
</div>
  <script src='https://code.jquery.com/jquery-2.2.4.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js'></script>

  

    <script  src="js/index.js"></script>




</body>

</html>

/*Downloaded from https://www.codeseek.co/VolodymyrBrylo/interactions-zBLomp */
.ui-widget-content {
  width: 300px;
  height: 150px;
  padding: 0.5em;
  border: 1px solid;
  background: #000;
}


/*Downloaded from https://www.codeseek.co/VolodymyrBrylo/interactions-zBLomp */
$( ".ui-widget-content" ).draggable();

Comments