Thu Nov 29 2018
Copied to clipboard! Copy reply
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
<!-- Desktop -->
<a href="/gift" id="floating-gift" alt='rosetta stone gift' title='Give Rosetta Stone as a gift'></a>

<!-- Mobile -->
<a href="https://rosettastone.com/gift" class="gift-mobile">
  <img src="https://rosettastone.com/lp/globals/img/gifting/mobile_sticky.png" alt="Give gift">
</a>

<style>
  #floating-gift {        
    width: 70px;
    height: 70px;
    border-radius: 50px;
    position: fixed;
    left: 5vw;
    top: 48vh;        
    box-shadow: 0 0 0 30px rgba(0,0,0, 0.2);
    animation: pulse 1.5s infinite;       
    background: url(http://rosettastone.com/lp/gift/assets/gift-white.png) no-repeat #B61C00 center;
    background-size: 40%;
  }

  #floating-gift:hover {
    animation: none;
  }

  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0px rgba(0,0,0, 0.2);
      transform: scale(.9)
    }
    70% {
      transform: scale(1);
      box-shadow: 0 0 0 30px rgba(0,0,0, 0)
    }
    100% {
      transform: scale(.9);
      box-shadow: 0 0 0 30px rgba(0,0,0, 0)
    }
  }


  .topbar a {
    text-decoration: none;
  }
  .navgift {
    background: url(//rosettastone.com/lp/gift/assets/gift-white-header.png ) #B61C00 center no-repeat;
    display: inline-block;
    position: relative;
    top: -12px;
    width: 100px;
    height: 30px;
    background-size: 63%;
    border-radius: 20px;
  }



  /* mobile */
  a.gift-mobile {
    display: none;
  }

  a.gift-mobile > img {
    display: block;
    width: 100%;
    position: fixed;
    bottom: 0;
  }

  @media (max-width: 500px) {
    /* Mobile - show gift banner in bottom */
    a.gift-mobile { display: block; }

    /* Desktop - hide navbar's gift icon */
    .navgift { display: none; }

    /* Desktop - hide floating gift icon */
    #floating-gift { display: none; }
  }

</style>

<script>
// In desktop, inject gift icon on navbar
if ($('a.gift-mobile').is(':visible') == false)
{
  $('.svglogo').parent().after("<a href='/gift' class='navgift'></a>")
}
</script>