SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Feb 2013
    Posts
    278
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    question about keyframes and rotate.

    So... i have a block that is 100px width/height. If i want the block to spin around its top right corner, how should my keyframe/animation look like? I do not want it to rotate around its center.

    this is how my code looks like atm:

    http://codepen.io/ReGGae/pen/CBltv

  2. #2
    SitePoint Zealot moretea's Avatar
    Join Date
    Jun 2004
    Location
    Texas, USA
    Posts
    118
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Try Googling on "css transform origin". I haven't used it myself, but I think it's what you're looking for.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •