Welcome to TalkGraphics.com
Results 1 to 10 of 32

Hybrid View

  1. #1
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,822

    Lightbulb Rotating Barber Poles

    I wanted to create the illusion of a rotating barber pole.
    The trick is to move the pole along a segment's width and repeat.

    I used anime.js for this but it can all be done in CSS.

    To work out the translation values, measure the displacement H & V of two adjacent repeats (red-white, red-white-blue-white).
    I used 32px H, 32px V and (27.8, 16) (H,V), which is 32px at 30deg.
    If you change the segment width or the angle, you have to recalculate.

    anime - Barber Poles.xar

    I assumed the USofA uses RWB for their poles.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  2. #2
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,917

    Default Re: Rotating Barber Poles

    Not quite a barbers pole:
    Attached Files Attached Files
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  3. #3
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,917

    Default Re: Rotating Barber Poles

    Another version:
    Attached Files Attached Files
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  4. #4
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,822

    Default Re: Rotating Barber Poles

    CROSS-POSTED
    Two things Egg.

    For barbers-pole.xar:
    You needed to made the covers PNG.
    The displacement needs to be 42.2px and not 31px; it jumps too much otherwise.

    I might change the easing to 'steps(2)'.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  5. #5
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,822

    Default Re: Rotating Barber Poles

    Egg, for -2.xar, I like the left-most one.
    I'd certainly move over for that one.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  6. #6
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,917

    Default Re: Rotating Barber Poles

    Cheers Acorn. I liked the jump in the first one so I left it in. Yes, the left police cars lights are the best.

    Anyway, having fun with this. Here's a demo of an archimedes screw:

    DEMO
    Attached Files Attached Files
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  7. #7
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,822

    Default Re: Rotating Barber Poles

    Quote Originally Posted by Egg Bramhill View Post
    Cheers Acorn. I liked the jump in the first one so I left it in. Yes, the left police cars lights are the best.
    Anyway, having fun with this. Here's a demo of an archimedes screw:
    DEMO
    Really good Egg. The static design is a winner on its own.

    Add in the ball rotating as it goes along.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

 

 

Tags for this Thread

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
  •