Skip to content

Rotating Star Effect

Solved Let's Build It
17 4 5.5k 1
  • wrote on last edited by
    #1

    Hello! I hope everything is going well. 😊 I’m interested in creating a page featuring a captivating rotating star effect similar to what’s showcased on the https://gatsbyconf.com/ website.

    Could you please guide me on how to achieve a similar WordPress page using the Gutenberg builder? Specifically, I’m aiming to incorporate the rotating effect, and I intend to overlay additional text elements on it. While attempting to save the page, I encountered difficulties in copying the required CSS or JS for the effect. I’m uncertain about where to commence. Your assistance in this matter would be greatly appreciated. Thank you!

  • wrote on last edited by
    #12
  • Hello! I hope everything is going well. 😊 I’m interested in creating a page featuring a captivating rotating star effect similar to what’s showcased on the https://gatsbyconf.com/ website.

    Could you please guide me on how to achieve a similar WordPress page using the Gutenberg builder? Specifically, I’m aiming to incorporate the rotating effect, and I intend to overlay additional text elements on it. While attempting to save the page, I encountered difficulties in copying the required CSS or JS for the effect. I’m uncertain about where to commence. Your assistance in this matter would be greatly appreciated. Thank you!

    wrote on last edited by
    #2

    @Hari What do you have so far in terms of the page? Can you share any links, code, or CSS?

  • @Hari What do you have so far in terms of the page? Can you share any links, code, or CSS?

    wrote on last edited by Panda
    #3

    On that gatsbyconf link I cant see the rotating star?
    Where is it?

  • On that gatsbyconf link I cant see the rotating star?
    Where is it?

    wrote on last edited by
    #4

    @Panda said in Rotating Star Effect:

    On that gatsbyconf link I cant see the rotating star?
    Where is it?

    I think it’s the rotating star background?

  • @Panda said in Rotating Star Effect:

    On that gatsbyconf link I cant see the rotating star?
    Where is it?

    I think it’s the rotating star background?

    wrote on last edited by
    #5

    @phenomlab yes, the rotating background, i have no pages. how do i get it in a wordpress page

  • @Panda said in Rotating Star Effect:

    On that gatsbyconf link I cant see the rotating star?
    Where is it?

    I think it’s the rotating star background?

    wrote on last edited by
    #6

    @phenomlab ah, it doesnt show on mobile
    But see it now in desktop mode

  • @phenomlab yes, the rotating background, i have no pages. how do i get it in a wordpress page

    wrote on last edited by
    #7

    @Hari that’s not as simple as it looks. Do you have a mock-up of how you’d like it to look?

  • @Hari that’s not as simple as it looks. Do you have a mock-up of how you’d like it to look?

    wrote on last edited by
    #8

    582bb319-da49-49ba-bc69-c55a2d8a984f-image.png

    just the rotating background without text would just work fine. i want to save this effect on page for now so i can refer to it later.

    can we find something on their github?

    https://github.com/gatsbyjs/gatsby

  • 582bb319-da49-49ba-bc69-c55a2d8a984f-image.png

    just the rotating background without text would just work fine. i want to save this effect on page for now so i can refer to it later.

    can we find something on their github?

    https://github.com/gatsbyjs/gatsby

    wrote on last edited by
    #9

    @Hari said in Rotating Star Effect:

    can we find something on their github?

    Have you checked there already?

  • Hello! I hope everything is going well. 😊 I’m interested in creating a page featuring a captivating rotating star effect similar to what’s showcased on the https://gatsbyconf.com/ website.

    Could you please guide me on how to achieve a similar WordPress page using the Gutenberg builder? Specifically, I’m aiming to incorporate the rotating effect, and I intend to overlay additional text elements on it. While attempting to save the page, I encountered difficulties in copying the required CSS or JS for the effect. I’m uncertain about where to commence. Your assistance in this matter would be greatly appreciated. Thank you!

    wrote on last edited by
    #10

    @Hari it looks very cool, I hope there is an easy way to achieve this background.

  • wrote on last edited by Panda
    #11

    Im on mobile, is there anyone who can paste this into one of those jsfiddle / codepen sites, to make a clickable demo from this very basic version1
    I will add some matrix sin/cos to make it rotate round rather than flat in v2

    <!DOCTYPE html>
    <html>  
      <body>
        <canvas id="canvas" width="600" height="400"></canvas>
    
        <script>
      var canvas = document.getElementById('canvas');
      var ctx = canvas.getContext('2d');
      var s=[],i
     for(i=0;i<200;i++){
            s[i]={x: Math.random()*600,
                  y: Math.random()*400,
                  r: Math.random()*3}
     }
          
    setInterval(draw,30)
    
     function draw() {
              for(i=0;i<200;i++){
                ctx.beginPath()
                ctx.fillStyle='white'
                ctx.arc(s[i].x, s[i].y, 5, 0, 6.3)
                ctx.fill()
                ctx.beginPath()
                ctx.fillStyle='black'
    
                s[i].x+=1
                if(s[i].x>610){s[i].x=-5}
                ctx.arc(s[i].x, s[i].y, s[i].r, 0, 6.3)
                ctx.fill()
            }
        }
            
        </script>
      </body>
    </html>
    
  • wrote on last edited by
    #12
  • wrote on last edited by
    #13

    Those look good. I put my basic one in a codepen
    https://codepen.io/C-L-the-selector/pen/MWZbWBo

  • Those look good. I put my basic one in a codepen
    https://codepen.io/C-L-the-selector/pen/MWZbWBo

    wrote on last edited by
    #14

    @Panda That also looks good. Just short of the 3D rendering part ! 🙂

  • wrote on last edited by phenomlab
    #15

    @Hari just came across this - looks like it could fit the bill

    https://jsfiddle.net/eLxazfta/

    and this

  • wrote on last edited by
    #16

    And this is so clever - very well written

    https://www.kevs3d.co.uk/dev/warpfield/

  • wrote on last edited by
    #17
  • Hari Hari has marked this topic as solved on

Did this solution help you?
Did you find the suggested solution useful? Support 💗 Sudonix with a coffee ☕
If your organisation needs deeper expertise around infrastructure, security, or technology leadership, learn more about Phenomlab Ltd. Many of the deeper technical guides behind Sudonix are published there.

Related Topics
  • 3 Votes
    2 Posts
    2k Views
    DownPW
    Very great
  • How to deploy WordPress.org Developer theme

    Solved Configure wordpress theme github
    4
    1 Votes
    4 Posts
    3k Views
    phenomlab
    @Hari the real issue here is that I don’t think it can be used as a theme for WordPress because of the dependencies it clearly has, including its own Web server. My view here is that this is designed to be a complete development environment outside of the WordPress core.
  • Blinking text Effect

    Customisation nodebb text effect css
    3
    5 Votes
    3 Posts
    2k Views
    DownPW
    @phenomlab I love it too @phenomlab said in Blinking text Effect: Has that “broken neon light” look that you see in films. It’s exactly that, kind of old neon signs of bar or pubs a bit cyberpunk too
  • tag icon in front of tags

    Solved Customisation css
    5
    3 Votes
    5 Posts
    2k Views
    crazycells
    @phenomlab said in tag icon in front of tags: @crazycells Are you using Font Awesome Free ? If so, try this span.tag:before { content: "\f02b"; font-family: "Font Awesome 5 Free"; margin-right: 5px; margin-left: 5px; font-weight: 900; } yeap, this worked thanks a lot.
  • Avatar on Topic Header

    Solved Customisation css avatar header
    9
    1
    0 Votes
    9 Posts
    3k Views
    JAC
    @jac said in Avatar on Topic Header: @downpw said in Avatar on Topic Header: Great Plugin I make it a bit cleaner via this CSS code: /*------------------------------------------------------------------*/ /*---------------- nodebb-plugin-browsing-users -----------------*/ /*------------------------------------------------------------------*/ /*Space between the avatar and the RSS icon */ .topic [component="topic/browsing-users"] { margin-bottom: -5px; padding-left: 10px; } /*Space between avatars*/ .pull-left { float: left!important; padding-right: 5px; } Do you have a screenshot of how this looks with the CSS change? Just added this change, thanks @DownPW
  • Bug Navbar CSS

    Solved Customisation navbar css
    3
    1 Votes
    3 Posts
    2k Views
    DownPW
    Not better way. Thanks.
  • [NODEBB] CSS Style Sheets SelectBox

    Locked Solved Customisation css
    112
    24 Votes
    112 Posts
    63k Views
    phenomlab
    @DownPW as discussed in PM Seems to have been solved with the new JS code that you added allowing the version CSS file change!! Cache problem therefore with the JS of the Switcher theme Based on this, I will close this thread and reference https://sudonix.com/topic/207/nodebb-help-for-my-custom-css/27
  • Best Cloudflare settings for woo commerce

    Solved WordPress cloudflare wordpress woocommerce
    2
    1
    1 Votes
    2 Posts
    2k Views
    phenomlab
    @hari the cache level for woocommerce should always be bypass. Any caching of woocommerce will cause you serious issues and will result in the checkout process not functioning correctly. This does mean that the overall experience will be slower (depending on geographic location) although CF is known to cause significant issues hence the need to bypass. If you want to cache as much as possible, then set rules to bypass caching on the cart and account pages etc.