<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sandy</title>
    <description>The latest articles on DEV Community by Sandy (@sandy08).</description>
    <link>https://dev.to/sandy08</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1783681%2F57a0e8b7-6132-4d81-bda0-e004fdaa7f9f.jpg</url>
      <title>DEV Community: Sandy</title>
      <link>https://dev.to/sandy08</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sandy08"/>
    <language>en</language>
    <item>
      <title>3 Rotating icons around the circle</title>
      <dc:creator>Sandy</dc:creator>
      <pubDate>Mon, 15 Jul 2024 09:22:25 +0000</pubDate>
      <link>https://dev.to/sandy08/3-rotating-icons-around-the-circle-1ek6</link>
      <guid>https://dev.to/sandy08/3-rotating-icons-around-the-circle-1ek6</guid>
      <description>&lt;p&gt;I am using one middle circle image and 3 icons rotating around the middle circle image, now 3 icons not align equally I need to equal distance 120 degree of 360 each icons. I have added JavaScript, html and style below. Please check It will helpful to me.&lt;/p&gt;

&lt;p&gt;Reference image below&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foo3amcxoo01xfisocpfo.JPG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foo3amcxoo01xfisocpfo.JPG" alt="Image description" width="466" height="483"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.slidercircle {
    margin-left: 0px;
    margin-top:0px;
    width: 518px;
    height: 622px;
}

.circle-middle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 95px;
    margin-top: 50px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    transition: 1s;
    width: 400px;
}


.circle-arround-two-1,
.circle-arround-two-2,
.circle-arround-two-3,
.circle-arround-two-4 {
    cursor: pointer;
    position: absolute;
    border-radius: 50%;
    top: 210px;
    left: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index:9;
}


.circle-arround-two-1 {
    transform: rotate(45deg) translateX(250px) rotate(-45deg);
    -webkit-animation: orbit3 100s linear infinite;
    -moz-animation: orbit3 100s linear infinite;
    -o-animation: orbit3 100s linear infinite;
    animation: orbit2 100s linear infinite;
    transition: 1s;
}

.circle-arround-two-2 {
    transform: rotate(45deg) translateX(-250px) rotate(-45deg);
    -webkit-animation: orbit3 100s linear infinite;
    -moz-animation: orbit3 100s linear infinite;
    -o-animation: orbit3 100s linear infinite;
    animation: orbit3 100s linear infinite;
    transition: 1s;
}

.circle-arround-two-3 {
    transform: rotate(45deg) translateY(250px) rotate(-45deg);
    -webkit-animation: orbit3 100s linear infinite;
    -moz-animation: orbit3 100s linear infinite;
    -o-animation: orbit3 100s linear infinite;
    animation: orbit4 100s linear infinite;
    transition: 1s;
}

.circle-arround-two-4 {
    transform: rotate(45deg) translateY(-250px) rotate(-45deg);
    -webkit-animation: orbit3 100s linear infinite;
    -moz-animation: orbit3 100s linear infinite;
    -o-animation: orbit3 100s linear infinite;
    animation: orbit5 100s linear infinite;
    transition: 1s;
}



@keyframes orbit2 {
    from {
        transform: rotate(0deg) translateX(180px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(180px) rotate(-360deg);
    }
}

@keyframes orbit3 {
    from {
        transform: rotate(0deg) translateX(-180px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(-180px) rotate(-360deg);
    }
}


@keyframes orbit4 {
    from {
        transform: rotate(0deg) translateY(180px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateY(180px) rotate(-360deg);
    }
}


.stopanima {
    animation-play-state: paused !important;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div class="slidercircle"&amp;gt;
  &amp;lt;div class="circle-one"&amp;gt;
    &amp;lt;div class="circle-arround-one"&amp;gt;&amp;lt;/div&amp;gt;
  &amp;lt;/div&amp;gt;
  &amp;lt;div class="circle-two"&amp;gt;
    &amp;lt;a href="#"&amp;gt;
      &amp;lt;div class="circle-arround-two-1 anima"&amp;gt;
        &amp;lt;img src="https://www.freepikcompany.com/img/cards.svg" class="banner-rotate-img"&amp;gt;
      &amp;lt;/div&amp;gt;
    &amp;lt;/a&amp;gt;
    &amp;lt;a href="#"&amp;gt;
      &amp;lt;div class="circle-arround-two-2 anima"&amp;gt;
        &amp;lt;img src="https://www.freepikcompany.com/img/cards.svg" class="banner-rotate-img"&amp;gt;
      &amp;lt;/div&amp;gt;
    &amp;lt;/a&amp;gt;
    &amp;lt;a href="#" target="_blank"&amp;gt;
      &amp;lt;div class="circle-arround-two-3 anima"&amp;gt;
        &amp;lt;img src="https://www.freepikcompany.com/img/cards.svg" class="banner-rotate-img"&amp;gt;
      &amp;lt;/div&amp;gt;
    &amp;lt;/a&amp;gt;
  &amp;lt;/div&amp;gt;
  &amp;lt;div class="circle-middle"&amp;gt;
    &amp;lt;img src="https://crop-circle.imageonline.co/crop-circle.png" class="banner-mid-img"&amp;gt;
  &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;script&amp;gt;
var stopCircle = document.getElementsByClassName('anima');
for (var i = 0; i &amp;lt; stopCircle.length; i++) {
    if (stopCircle[i].matches(':hover')) {}
    stopCircle[i].addEventListener("mouseover", function(event) {
        document.getElementsByClassName('circle-arround-two-1')[0].classList.add("stopanima");
        document.getElementsByClassName('circle-arround-two-2')[0].classList.add("stopanima");
        document.getElementsByClassName('circle-arround-two-3')[0].classList.add("stopanima");
        document.getElementsByClassName('circle-arround-two-4')[0].classList.add("stopanima");
    });
    stopCircle[i].addEventListener("mouseout", function(event) {
        document.getElementsByClassName('circle-arround-two-1')[0].classList.remove("stopanima");
        document.getElementsByClassName('circle-arround-two-2')[0].classList.remove("stopanima");
        document.getElementsByClassName('circle-arround-two-3')[0].classList.remove("stopanima");
        document.getElementsByClassName('circle-arround-two-4')[0].classList.remove("stopanima");
    });
}
&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
  </channel>
</rss>
