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
  • "Glass" (shine) effect on Sudonix logo

    Let's Build It animation shine
    7
    4 Votes
    7 Posts
    5k Views
    phenomlab
    @DownPW said in "Glass" (shine) effect on Sudonix logo: Perfect with White background theme but much less with black themes backgrounds (we see the edges of the shine effect) Yes, you will need to modify the CSS according. For example, on Sudonix, I use --bs-node-shine: linear-gradient(90deg, rgba(28, 38, 44, 0) 0%, rgba(74, 100, 116, 0.5) 50%, rgba(28, 38, 44, 0) 100%); Essentially, you choose the base background, the shine colour, and then the base background again.
  • configure ghost and wordpress combo

    Moved Solved WordPress ghost wordpress nginx
    9
    7 Votes
    9 Posts
    3k Views
    phenomlab
    @Madchatthew I’d always post for the reasons I stated above. It’s useful information and could save someone else the headache.
  • Material View Support for Stock NodeBB

    Unsolved Let's Build It material view javascript css
    51
    4
    15 Votes
    51 Posts
    27k Views
    DownPW
    Oh yes, that’s what’s super cool, I learn something every day. Afterwards I start from so low in JS
  • Widget | CSS customization

    Solved WordPress css
    53
    17 Votes
    53 Posts
    19k Views
    phenomlab
    @Sala the only way you can achieve this is to use a robots.txt file and disallow access to those links.
  • The best css to customize our logo?

    Solved Customisation css
    2
    1 Votes
    2 Posts
    3k Views
    phenomlab
    @Sala This should look better .sidenav .navbar-brand { padding-top: 0.5rem; padding-bottom: 0.5rem; } [image: e5cec20e-be36-4ee8-9129-fd11ad4656ac-image.png] You can increase the top and bottom padding by increasing the values above.
  • [NODEBB] Scroll Button

    Solved Customisation css javascript html scroll button
    7
    1
    0 Votes
    7 Posts
    3k Views
    phenomlab
    @downpw ooops. Forgot that. Thanks for adding.
  • Bug Navbar CSS

    Solved Customisation navbar css
    3
    1 Votes
    3 Posts
    2k Views
    DownPW
    Not better way. Thanks.
  • WordPress & NodeBB

    Solved WordPress
    6
    0 Votes
    6 Posts
    3k Views
    phenomlab
    @jac That won’t matter. You just redirect at nginx or apache level and it’ll work. The generally accepted standard though is to use a subdomain.