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
  • 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.
  • 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.
  • hover link effect

    Solved Customisation css link hover
    18
    1
    6 Votes
    18 Posts
    7k Views
    phenomlab
    @DownPW Looking at the underlying code, class start is being added on hover by jQuery in this function document.querySelectorAll(".button-gradient, .button-transparent").forEach((button) => { const style = getComputedStyle(button); const lines = document.createElement("div"); lines.classList.add("lines"); const groupTop = document.createElement("div"); const groupBottom = document.createElement("div"); const svg = createSVG( button.offsetWidth, button.offsetHeight, parseInt(style.borderRadius, 10) ); groupTop.appendChild(svg); groupTop.appendChild(svg.cloneNode(true)); groupTop.appendChild(svg.cloneNode(true)); groupTop.appendChild(svg.cloneNode(true)); groupBottom.appendChild(svg.cloneNode(true)); groupBottom.appendChild(svg.cloneNode(true)); groupBottom.appendChild(svg.cloneNode(true)); groupBottom.appendChild(svg.cloneNode(true)); lines.appendChild(groupTop); lines.appendChild(groupBottom); button.appendChild(lines); button.addEventListener("pointerenter", () => { button.classList.add("start"); }); svg.addEventListener("animationend", () => { button.classList.remove("start"); }); }); }) The CSS for start is below .button-gradient.start .lines svg, .button-transparent.start .lines svg { animation: stroke 0.3s linear; } And this is the corresponding keyframe @keyframes stroke { 30%, 55% { opacity: 1; } 100% { stroke-dashoffset: 5; opacity: 0; } } It’s using both CSS and SVG, so might not be a simple affair to replicate without the SVG files.
  • Fontawesome 5

    Unsolved Customisation fonts css nodebb
    14
    1 Votes
    14 Posts
    6k Views
    phenomlab
    @pwsincd hi. Just following up on this thread (I know it’s old) but was curious to understand if it’s still an issue or not ?
  • [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.
  • 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
  • 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.