Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • C core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 81
    • Issues 81
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • dulst
  • core
  • Issues
  • #94

Closed
Open
Created Aug 25, 2019 by Kaoru Aoi@dulst-admin💬Owner

Curved hand

 total = 10
 
 for i in (1)..(total)
  #playContainer .card[data-location="me-hand"]
    &[data-cardcount=\"{i}\"]
      color blue
      for o in (0)..(i - 1)
        rotationRange = 30
        rotation = (o - (i - 1) / 2) / (i - 2) * rotationRange
        offsetRange = 30
        offset = abs((o - (i - 1) / 2) / (i - 2) * offsetRange)
        &[data-posx=\"{o}\"]
          color red
          .card-inner
            transform: translateY(offset * 1px) rotate(rotation * 1deg)
            backface-visibility: hidden
          &:hover
            .card-inner
              transform: translateY(-2rem) rotate(0deg)
              transition-duration: 450ms
              z-index: 12
              .property.name
                //display: block
              &:after
                animation: fade 450ms ease-out forwards
                z-index 13
            &:after
              top: -175px
        
@keyframes fade
  0%
    opacity: 0.9
    transform: scale(1)
  100%
    opacity: 0
    transform: scale(1.15)

Just to help you get started, does not fully have good UX.

Copy this to the bottom of your CSS.

Edited Aug 25, 2019 by Kaoru Aoi
Assignee
Assign to
Time tracking