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
  • 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
  • Switch between list and card view function

    Moved Let's Build It cards layout css
    107
    1
    50 Votes
    107 Posts
    57k Views
    phenomlab
    @crazycells [image: image.png] [image: image.png]
  • chat list navbar

    Solved Customisation css navbar chat menu
    30
    2
    3 Votes
    30 Posts
    13k Views
    DownPW
    No no it’s ok @phenomlab I just comment the 2 lines mentionned aboves
  • auto create flarum new discussions in wordpress

    Configure flarum wordpress
    2
    1 Votes
    2 Posts
    1k Views
    phenomlab
    @Hari I think you’re referring to this https://sudonix.com/topic/170/creating-posts-from-rss-feeds-in-flarum However, this code was never designed to work with WordPress, but you could leverage the WP-CLI to do something similar without too much effort.
  • [NODEBB] Help for my custom CSS

    Solved Customisation nodebb css bugfix
    258
    49 Votes
    258 Posts
    168k Views
    cagatay
    mark hi, Refused to apply style from ‘https://efelsefe.com/assets/customfonts/FontAwesome-6-Pro/pro/css/v4-font-face.css’ because its MIME type (‘text/plain’) is not a supported stylesheet MIME type, and strict MIME checking is enabled. I keep getting this error.
  • [NODEBB] Reply Button/arrow answer

    Solved Customisation css nodebb
    25
    4
    4 Votes
    25 Posts
    12k Views
    DownPW
    Topic open https://sudonix.com/topic/207/nodebb-help-for-my-custom-css
  • Bug Navbar CSS

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

    Solved Customisation
    8
    3
    2 Votes
    8 Posts
    4k Views
    phenomlab
    @riekmedia I’ve applied some new CSS to your site. Can you reload the page and try again ? For the record, this is what I added #footer { background: #2d343e; border-top: 4px solid #2d343e; font-size: 0.9em; margin-top: 70px; padding: 80px 0 0; position: relative; clear: both; bottom: 0; left: 0; right: 0; z-index: 1000; margin-left: -15px; margin-right: -338px; } The /categories page seems a bit messed up, so looking at that currently EDIT - issued some override CSS in the CATEGORIES widget <!--- CSS fix for overspill on /categories page - DO NOT DELETE --> <style> #footer { margin-right: -45px; } </style> That should resolve the /categories issue.