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
  • 2 Votes
    1 Posts
    639 Views
    No one has replied
  • Nodebb vs Wordpress vs Other

    General wordpress nodebb woocomerce business
    4
    5 Votes
    4 Posts
    2k Views
    DownPW
    PrestaShop + modules IA https://www.prestashop.com Magento https://developer.adobe.com/open/magento
  • "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.
  • How to fix no img attribute from this code

    Solved WordPress wordpress
    7
    1 Votes
    7 Posts
    2k Views
    Sala
    Yes, I am aware that if users are given the option to enter alt text, some may do so in an abusive manner. For the time being, we’ve adjusted the php script to generate the alt automatically, thus there are no longer any SEO problem with alt images.
  • Fixing YouTube videos css

    Solved WordPress css
    8
    2 Votes
    8 Posts
    3k Views
    Sala
    @phenomlab It looks good, but not anymore. I’ve already lost so much time. Now it’s time to move on
  • 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] Welcome Message

    Solved Customisation css html nodebb
    20
    2
    13 Votes
    20 Posts
    9k Views
    phenomlab
    @DownPW the ‘js’ code for the banner takes the time from the client, so what it displays really depends on the regional settings for the operating system. I’ve not seen this issue myself but would like to see some examples of screenshots if possible.
  • 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.