Sha256: a972cae1237bf85ff89894710d4edba4dc370f2d8f1f66a12b10211bdd02a1b1

Contents?: true

Size: 1.98 KB

Versions: 16

Compression:

Stored size: 1.98 KB

Contents

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
    <title>with_animation</title>
    <script src="/jquery.js" type="text/javascript" charset="utf-8"></script>
    <script src="/jquery-ui.js" type="text/javascript" charset="utf-8"></script>
    <script src="/test.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript">
      $(document).on('transitionend', function(){
        $(document.body).append('<div>Transition Ended</div>')
      });
      $(document).on('animationend', function(){
        $(document.body).append('<div>Animation Ended</div>')
      });
      $(document).on('contextmenu', function(e){
        e.preventDefault();
      });
    </script>
    <style>
      html {
        scroll-behavior: smooth;
      }

      body {
        min-height: 2000px;
      }

      .transition.away {
          width: 0%;
      }

      a {
          display: inline-block;
          width: 100%;
          overflow: hidden;
      }

      a::after {
        content: "";
        width: 0px;
        height: 0px;
        background-color: blue;
      }

      a:not(.away) {
        height: 20px;
      }

      a.transition {
        transition: all 3s ease-in-out;
      }

      @keyframes animation {
          0%   {height: 20px; width: 100%;}
          100% {height: 0px; width: 0%;}
      }

      a.animation.away {
        animation-name: animation;
        animation-duration: 3s;
        animation-fill-mode: forwards;
      }

      @keyframes pseudo_grow {
        100% { height: 100px, width: 100px };
      }

      a.animation.pseudo::after {
        animation: pseudo_grow 3s forwards;
      }
    </style>
  </head>

  <body id="with_animation">
    <a href='#' class='transition' onclick='this.classList.add("away")'>transition me away</a>
    <a href='#' class='animation' onclick='this.classList.add("away")' oncontextmenu='this.classList.add("pseudo")'>
      animate me away
    </a>
  </body>
</html>

Version data entries

16 entries across 16 versions & 4 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/capybara-3.40.0/lib/capybara/spec/views/with_animation.erb
capybara-3.40.0 lib/capybara/spec/views/with_animation.erb
capybara-3.39.2 lib/capybara/spec/views/with_animation.erb
capybara-3.39.1 lib/capybara/spec/views/with_animation.erb
capybara-3.39.0 lib/capybara/spec/views/with_animation.erb
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/capybara-3.36.0/lib/capybara/spec/views/with_animation.erb
capybara-3.38.0 lib/capybara/spec/views/with_animation.erb
tdiary-5.2.3 vendor/bundle/ruby/3.1.0/gems/capybara-3.37.1/lib/capybara/spec/views/with_animation.erb
tdiary-5.2.2 vendor/bundle/ruby/3.1.0/gems/capybara-3.37.1/lib/capybara/spec/views/with_animation.erb
capybara-3.37.1 lib/capybara/spec/views/with_animation.erb
capybara-3.37.0 lib/capybara/spec/views/with_animation.erb
tdiary-5.2.1 vendor/bundle/ruby/3.1.0/gems/capybara-3.36.0/lib/capybara/spec/views/with_animation.erb
tdiary-5.2.0 vendor/bundle/ruby/3.0.0/gems/capybara-3.36.0/lib/capybara/spec/views/with_animation.erb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/capybara-3.36.0/lib/capybara/spec/views/with_animation.erb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/capybara-3.36.0/lib/capybara/spec/views/with_animation.erb
capybara-3.36.0 lib/capybara/spec/views/with_animation.erb