Make it Spin

Stardust in me
aliasEm, Dragon
pronounsShe/Her/Hers
773written posts
rabbitearsearned bits
offlinecurrently
rabbitears
Part of the Furniture
rabbitears Avatar
We're motivated by the stars that we're made of
I can't seem to transfer the CSS to proboards to get my boarder to spin. Any help?


[attr="class","spin"]
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed a lectus purus. Nam eleifend augue ac dignissim tempor. Duis congue sagittis leo, quis congue mi sagittis id. Suspendisse at volutpat nunc. Sed finibus rhoncus dui, ac venenatis ex consectetur et. In hac habitasse platea dictumst. Nullam iaculis efficitur justo, at mattis ex tempor et. Ut a bibendum nulla, nec vehicula sapien. Aenean condimentum sem eu tortor dapibus elementum vel nec mauris. Phasellus mi mi, gravida eu sapien eu, scelerisque molestie nisl. Nam venenatis vulputate dui ut maximus. Nunc maximus at sapien in sollicitudin. Duis volutpat viverra massa in viverra.

Curabitur sapien orci, rhoncus id euismod sit amet, cursus ut magna. Curabitur eu dapibus dolor, sit amet rutrum sapien. In lacus purus, vulputate id felis et, aliquam vehicula risus. Quisque tempor mauris nec nibh suscipit blandit. Nulla facilisi. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce aliquet urna sit amet tellus mattis, eu lobortis lorem vestibulum. Etiam congue pulvinar erat ac euismod. Phasellus sit amet placerat mi. Morbi sollicitudin tempor turpis vel gravida. Morbi sit amet convallis ipsum. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Proin convallis viverra lectus sed egestas. Sed auctor vulputate quam, vel rutrum tortor dapibus quis. Duis imperdiet, tellus vel tincidunt gravida, dui dolor elementum elit, et ultricies ligula est in diam. Nullam eleifend ipsum ac commodo tristique.

Suspendisse vehicula eu justo id suscipit. Interdum et malesuada fames ac ante ipsum primis in faucibus. Etiam vehicula, augue nec tincidunt posuere, odio odio euismod quam, quis auctor risus nisl ut leo. Integer dapibus varius vehicula. In a lorem convallis, molestie elit vel, vulputate nulla. Fusce fermentum interdum mi, sed blandit sem sollicitudin non. Integer faucibus lorem nec imperdiet ullamcorper. Donec nec ipsum nulla. Aliquam at felis aliquam, pulvinar orci eu, viverra nisl. Cras aliquam ipsum ut tellus maximus, at facilisis nulla maximus. Aliquam semper lorem et libero tincidunt pellentesque. Donec sit amet faucibus mauris, fringilla pulvinar leo. Mauris tellus mauris, tincidunt ac accumsan vitae, hendrerit in libero.

In pellentesque eget erat quis euismod. Maecenas tortor sapien, fringilla posuere purus vel, pretium volutpat enim. Vivamus quis bibendum diam, id finibus odio. Nunc malesuada scelerisque nisl eget consequat. Etiam sollicitudin sit amet massa ultrices iaculis. Nunc ultricies diam eros, id commodo velit venenatis eget. Sed blandit aliquet orci, eu porttitor tortor sollicitudin eu. Aenean semper maximus congue. Nulla pretium ullamcorper tellus a suscipit. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vivamus suscipit cursus justo, a vestibulum neque ullamcorper sed. Aliquam egestas bibendum gravida.

Phasellus eu feugiat ipsum, quis sagittis mauris. Duis porta nibh a turpis euismod, eget sodales tortor aliquet. Vestibulum a velit pretium, semper ligula et, porta velit. Nulla vel nisl odio. Proin congue leo elit, et pulvinar tellus finibus nec. Nam accumsan venenatis sapien sed ullamcorper. Sed porttitor vel lacus id mollis. Sed sodales libero dui. Donec efficitur leo eget odio lacinia, quis dapibus nibh sagittis.
[newclass=.spin]animation: rotate 10s linear infinite; }@keyframes rotate {100% {transform: rotate(1turn);}[/newclass]
[div align="center"][div align="justify" style="width:400px;"][div style="float:right;padding:5px;"][attr="class","spin"][div style="width:150px;height:150px;border-radius:50%;padding:2.5px;border:2.5px dashed #4a6a65;"][img src="https://via.placeholder.com/150" style="width:150px;border-radius:50%;"][/div][/div]Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed a lectus purus. Nam eleifend augue ac dignissim tempor. Duis congue sagittis leo, quis congue mi sagittis id. Suspendisse at volutpat nunc. Sed finibus rhoncus dui, ac venenatis ex consectetur et. In hac habitasse platea dictumst. Nullam iaculis efficitur justo, at mattis ex tempor et. Ut a bibendum nulla, nec vehicula sapien. Aenean condimentum sem eu tortor dapibus elementum vel nec mauris. Phasellus mi mi, gravida eu sapien eu, scelerisque molestie nisl. Nam venenatis vulputate dui ut maximus. Nunc maximus at sapien in sollicitudin. Duis volutpat viverra massa in viverra.

Curabitur sapien orci, rhoncus id euismod sit amet, cursus ut magna. Curabitur eu dapibus dolor, sit amet rutrum sapien. In lacus purus, vulputate id felis et, aliquam vehicula risus. Quisque tempor mauris nec nibh suscipit blandit. Nulla facilisi. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce aliquet urna sit amet tellus mattis, eu lobortis lorem vestibulum. Etiam congue pulvinar erat ac euismod. Phasellus sit amet placerat mi. Morbi sollicitudin tempor turpis vel gravida. Morbi sit amet convallis ipsum. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Proin convallis viverra lectus sed egestas. Sed auctor vulputate quam, vel rutrum tortor dapibus quis. Duis imperdiet, tellus vel tincidunt gravida, dui dolor elementum elit, et ultricies ligula est in diam. Nullam eleifend ipsum ac commodo tristique.

Suspendisse vehicula eu justo id suscipit. Interdum et malesuada fames ac ante ipsum primis in faucibus. Etiam vehicula, augue nec tincidunt posuere, odio odio euismod quam, quis auctor risus nisl ut leo. Integer dapibus varius vehicula. In a lorem convallis, molestie elit vel, vulputate nulla. Fusce fermentum interdum mi, sed blandit sem sollicitudin non. Integer faucibus lorem nec imperdiet ullamcorper. Donec nec ipsum nulla. Aliquam at felis aliquam, pulvinar orci eu, viverra nisl. Cras aliquam ipsum ut tellus maximus, at facilisis nulla maximus. Aliquam semper lorem et libero tincidunt pellentesque. Donec sit amet faucibus mauris, fringilla pulvinar leo. Mauris tellus mauris, tincidunt ac accumsan vitae, hendrerit in libero.

In pellentesque eget erat quis euismod. Maecenas tortor sapien, fringilla posuere purus vel, pretium volutpat enim. Vivamus quis bibendum diam, id finibus odio. Nunc malesuada scelerisque nisl eget consequat. Etiam sollicitudin sit amet massa ultrices iaculis. Nunc ultricies diam eros, id commodo velit venenatis eget. Sed blandit aliquet orci, eu porttitor tortor sollicitudin eu. Aenean semper maximus congue. Nulla pretium ullamcorper tellus a suscipit. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vivamus suscipit cursus justo, a vestibulum neque ullamcorper sed. Aliquam egestas bibendum gravida.

Phasellus eu feugiat ipsum, quis sagittis mauris. Duis porta nibh a turpis euismod, eget sodales tortor aliquet. Vestibulum a velit pretium, semper ligula et, porta velit. Nulla vel nisl odio. Proin congue leo elit, et pulvinar tellus finibus nec. Nam accumsan venenatis sapien sed ullamcorper. Sed porttitor vel lacus id mollis. Sed sodales libero dui. Donec efficitur leo eget odio lacinia, quis dapibus nibh sagittis.[/div][/div][newclass=.spin]animation: rotate 10s linear infinite; }@keyframes rotate {100% {transform: rotate(1turn);}[/newclass]


last edit on Feb 11, 2022 16:49:26 GMT by rabbitears
frog on the floor
aliasfreiheit, microwaved burrito
pronounsany
1,544written posts
pharaoh leapearned bits
offlinecurrently
pharaoh leap
Administrator
pharaoh leap Avatar
i've been having some pretty dark thoughts.
Okay, , so we've got a couple different things! I'm notoriously bad at explaining things, so I'll do my best, but if someone better at words than me wants to take a stab at translating this, by all means.

a) So right now, you have [ newclass=.spin]@keyframes[...][/ newclass] at the bottom of your code. This is only partly correct. Your @keyframes rotate needs to be handled like a class of it's own, not like color:red; or other CSS. So rather than the keyframes going inside spin's css, you'd want something that looks instead like:

[ newclass=.spin][/ newclass]
[ newclass=@keyframes rotate]100% {transform: rotate(1turn);}[/ newclass]


b) @keyframes ___ isn't like a normal class, though. It's essentially working as a variable: information you put in your code, but call for somewhere else in the code. How do we do this? You'll notice above, I didn't put anything in the CSS for your spin class. Now, we'll add CSS in to make the animation work, using animation CSS. It'll look like so:

[ newclass=.spin]animation: rotate 10s linear infinite;[/ newclass]

So what does any of this mean??? Animation is a CSS indicator, just like color tells your text what color to change to or margin tells the code... well, what the margins are supposed to be. Rotate, in this case, is the same word from @keyframes rotate - 'rotate' is the variable I mentioned before. This is how the animation knows how to animate. If you change 'rotate' to 'turn' in @keyframes rotate, you would also have to change 'rotate' to 'turn' in this CSS we've added here. 10s means 10 seconds - this is the duration of the animation. Linear is one of two options, which if you've done anything with hovers, you might recognize; 'linear' makes the movement of the animation even throughout, so the spinning stays consistent, but you can also replace it with the word 'ease' to see the other kind of movement transition. Finally, infinite will make it so that once the duration you specified before is up (10s, or 10 seconds, in this case), the animation will repeat infinitely. If you only want your class to spin once, you can just get rid of the word 'infinite'.

c) And finally... the worst part of it all. So Proboards newclasses are a little broken, and they don't support 100% of the things that regular HTML can. For some things that Proboards newclasses can't support, though - @keyframes being one of them - we can utilize a glitch in the Matrix to get working, anyway.

To explain how the glitch works, we can look at Proboards newclasses versus raw CSS:

.spin { css here! }
versus
[ newclass=.spin]css here![/ newclass]

Note that the newclass tags are essentially just replacing the {} brackets, plus a little bit of text. Everything inside the newclass tags is being read as raw CSS - meaning we can write raw CSS (and as much as we want of it) inside the newclass tags, so long we start with a class name and the last closing } in the CSS is replaced with closing [/ newclass] tag.

Sooooooooo, what that means is that what your code begins and ends as is... *drumrolls*

BEFORE: [newclass=.spin]@keyframes rotate {100% {transform: rotate(1turn);}}[/newclass]
AFTER: [newclass=.spin]animation: rotate 10s linear infinite; }@keyframes rotate {100% {transform: rotate(1turn);}[/newclass]

I hope that helped/made sense at all! Happy coding! ;u;/
last edit on Feb 6, 2022 19:57:12 GMT by pharaoh leap
Stardust in me
aliasEm, Dragon
pronounsShe/Her/Hers
773written posts
rabbitearsearned bits
offlinecurrently
rabbitears
Part of the Furniture
rabbitears Avatar
We're motivated by the stars that we're made of
What did I do wrong this time?

[attr="class","circle-wrapper"]
[attr="class","circle"]
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed a lectus purus. Nam eleifend augue ac dignissim tempor. Duis congue sagittis leo, quis congue mi sagittis id. Suspendisse at volutpat nunc. Sed finibus rhoncus dui, ac venenatis ex consectetur et. In hac habitasse platea dictumst. Nullam iaculis efficitur justo, at mattis ex tempor et. Ut a bibendum nulla, nec vehicula sapien. Aenean condimentum sem eu tortor dapibus elementum vel nec mauris. Phasellus mi mi, gravida eu sapien eu, scelerisque molestie nisl. Nam venenatis vulputate dui ut maximus. Nunc maximus at sapien in sollicitudin. Duis volutpat viverra massa in viverra.

Curabitur sapien orci, rhoncus id euismod sit amet, cursus ut magna. Curabitur eu dapibus dolor, sit amet rutrum sapien. In lacus purus, vulputate id felis et, aliquam vehicula risus. Quisque tempor mauris nec nibh suscipit blandit. Nulla facilisi. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce aliquet urna sit amet tellus mattis, eu lobortis lorem vestibulum. Etiam congue pulvinar erat ac euismod. Phasellus sit amet placerat mi. Morbi sollicitudin tempor turpis vel gravida. Morbi sit amet convallis ipsum. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Proin convallis viverra lectus sed egestas. Sed auctor vulputate quam, vel rutrum tortor dapibus quis. Duis imperdiet, tellus vel tincidunt gravida, dui dolor elementum elit, et ultricies ligula est in diam. Nullam eleifend ipsum ac commodo tristique.

Suspendisse vehicula eu justo id suscipit. Interdum et malesuada fames ac ante ipsum primis in faucibus. Etiam vehicula, augue nec tincidunt posuere, odio odio euismod quam, quis auctor risus nisl ut leo. Integer dapibus varius vehicula. In a lorem convallis, molestie elit vel, vulputate nulla. Fusce fermentum interdum mi, sed blandit sem sollicitudin non. Integer faucibus lorem nec imperdiet ullamcorper. Donec nec ipsum nulla. Aliquam at felis aliquam, pulvinar orci eu, viverra nisl. Cras aliquam ipsum ut tellus maximus, at facilisis nulla maximus. Aliquam semper lorem et libero tincidunt pellentesque. Donec sit amet faucibus mauris, fringilla pulvinar leo. Mauris tellus mauris, tincidunt ac accumsan vitae, hendrerit in libero.

In pellentesque eget erat quis euismod. Maecenas tortor sapien, fringilla posuere purus vel, pretium volutpat enim. Vivamus quis bibendum diam, id finibus odio. Nunc malesuada scelerisque nisl eget consequat. Etiam sollicitudin sit amet massa ultrices iaculis. Nunc ultricies diam eros, id commodo velit venenatis eget. Sed blandit aliquet orci, eu porttitor tortor sollicitudin eu. Aenean semper maximus congue. Nulla pretium ullamcorper tellus a suscipit. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vivamus suscipit cursus justo, a vestibulum neque ullamcorper sed. Aliquam egestas bibendum gravida.

Phasellus eu feugiat ipsum, quis sagittis mauris. Duis porta nibh a turpis euismod, eget sodales tortor aliquet. Vestibulum a velit pretium, semper ligula et, porta velit. Nulla vel nisl odio. Proin congue leo elit, et pulvinar tellus finibus nec. Nam accumsan venenatis sapien sed ullamcorper. Sed porttitor vel lacus id mollis. Sed sodales libero dui. Donec efficitur leo eget odio lacinia, quis dapibus nibh sagittis.


[newclass=".circle-wrapper"] { position: relative; width: 150px; height: 150px; float: left; margin: 10px;}[/newclass]
[newclass=".circle"] { display: block; width: 100%; height: 100%; border-radius: 45%; padding: 2.5px; border:2.5px dashed #90548a; background-clip: content-box; animation: spin 10s linear infinite; }@keyframes rotate {100% {transform: rotate(1turn);}[/newclass]

[div align="center"][div style="width:400px;background-image:url(https://img.nickpic.host/uCo5VJ.jpg);padding:50px;" align="justify"][div style="float:right;padding:5px;"][div][attr="class","circle-wrapper"][div][attr="class","circle"][/div][img style="width:150px;border-radius:45%;padding-left:5px;" src="https://via.placeholder.com/150"][/div][/div][div style="padding:10px;background-color:#e6aae6;color:black;"]Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed a lectus purus. Nam eleifend augue ac dignissim tempor. Duis congue sagittis leo, quis congue mi sagittis id. Suspendisse at volutpat nunc. Sed finibus rhoncus dui, ac venenatis ex consectetur et. In hac habitasse platea dictumst. Nullam iaculis efficitur justo, at mattis ex tempor et. Ut a bibendum nulla, nec vehicula sapien. Aenean condimentum sem eu tortor dapibus elementum vel nec mauris. Phasellus mi mi, gravida eu sapien eu, scelerisque molestie nisl. Nam venenatis vulputate dui ut maximus. Nunc maximus at sapien in sollicitudin. Duis volutpat viverra massa in viverra.

Curabitur sapien orci, rhoncus id euismod sit amet, cursus ut magna. Curabitur eu dapibus dolor, sit amet rutrum sapien. In lacus purus, vulputate id felis et, aliquam vehicula risus. Quisque tempor mauris nec nibh suscipit blandit. Nulla facilisi. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce aliquet urna sit amet tellus mattis, eu lobortis lorem vestibulum. Etiam congue pulvinar erat ac euismod. Phasellus sit amet placerat mi. Morbi sollicitudin tempor turpis vel gravida. Morbi sit amet convallis ipsum. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Proin convallis viverra lectus sed egestas. Sed auctor vulputate quam, vel rutrum tortor dapibus quis. Duis imperdiet, tellus vel tincidunt gravida, dui dolor elementum elit, et ultricies ligula est in diam. Nullam eleifend ipsum ac commodo tristique.

Suspendisse vehicula eu justo id suscipit. Interdum et malesuada fames ac ante ipsum primis in faucibus. Etiam vehicula, augue nec tincidunt posuere, odio odio euismod quam, quis auctor risus nisl ut leo. Integer dapibus varius vehicula. In a lorem convallis, molestie elit vel, vulputate nulla. Fusce fermentum interdum mi, sed blandit sem sollicitudin non. Integer faucibus lorem nec imperdiet ullamcorper. Donec nec ipsum nulla. Aliquam at felis aliquam, pulvinar orci eu, viverra nisl. Cras aliquam ipsum ut tellus maximus, at facilisis nulla maximus. Aliquam semper lorem et libero tincidunt pellentesque. Donec sit amet faucibus mauris, fringilla pulvinar leo. Mauris tellus mauris, tincidunt ac accumsan vitae, hendrerit in libero.

In pellentesque eget erat quis euismod. Maecenas tortor sapien, fringilla posuere purus vel, pretium volutpat enim. Vivamus quis bibendum diam, id finibus odio. Nunc malesuada scelerisque nisl eget consequat. Etiam sollicitudin sit amet massa ultrices iaculis. Nunc ultricies diam eros, id commodo velit venenatis eget. Sed blandit aliquet orci, eu porttitor tortor sollicitudin eu. Aenean semper maximus congue. Nulla pretium ullamcorper tellus a suscipit. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vivamus suscipit cursus justo, a vestibulum neque ullamcorper sed. Aliquam egestas bibendum gravida.

Phasellus eu feugiat ipsum, quis sagittis mauris. Duis porta nibh a turpis euismod, eget sodales tortor aliquet. Vestibulum a velit pretium, semper ligula et, porta velit. Nulla vel nisl odio. Proin congue leo elit, et pulvinar tellus finibus nec. Nam accumsan venenatis sapien sed ullamcorper. Sed porttitor vel lacus id mollis. Sed sodales libero dui. Donec efficitur leo eget odio lacinia, quis dapibus nibh sagittis.[/div][/div][/div][div style="font-family:arial;font-size:7px;padding:5px;" align="center"][a href="https://pixel-perfect.boards.net/user/2944"]by Em[/a][/div]

[newclass=".circle-wrapper"] {  position: relative;  width: 150px;  height: 150px;  float: left;  margin: 10px;}[/newclass]
[newclass=".circle"] {  display: block;  width: 100%;  height: 100%;  border-radius: 45%;  padding: 2.5px;  border:2.5px dashed #90548a; background-clip: content-box;  animation: spin 10s linear infinite; }@keyframes rotate {100% {transform: rotate(1turn);}[/newclass]
frog on the floor
aliasfreiheit, microwaved burrito
pronounsany
1,544written posts
pharaoh leapearned bits
offlinecurrently
pharaoh leap
Administrator
pharaoh leap Avatar
i've been having some pretty dark thoughts.
, oh shoot, oh heck, I missed the image bit.

THE FIRST QUESTION. So the reason the image is spinning is because the image is inside the class that's spinning. If you were to have text or another div inside the dashed spinning board div, they'd spin, too. The best way to fix this is technically to just... have nothing inside the spinning div that you don't want to be spinning. Doing so, you'd take the image out, put it somewhere else, and manually align it so that it's on top of the spinning circle/looks the way it does now.

If you don't want to mess with your HTML, though, you can also try this in your CSS, by adding:

[ newclass=.spin img]animation: rotate2 10s linear infinite; }@keyframes rotate2 {100% {transform: rotate(-360deg); }[/ newclass]

So basically, when you add an image to Proboards, you use this syntax, right? [ img src="URL" ] This is a sort of HTML tag that we can call, even without using a class name. By putting .spin img, we are telling the code to apply that styling (in this case, the animation) to any [ img ] tag inside the .spin class. The animation we're giving it is the mirror opposite of what the .spin class has. (Note that 360 degrees is one full turn clockwise, so -360deg means that it is making one full turn counterclockwise.) This means that the image will be spinning in the opposite direction of the div it's inside, effectively counter-acting it. THE PROBLEM... I haven't live tested this to see for sure, but there's a good chance that the image may appear a bit 'jerky'. This is why, despite having a more complicated write-up, the better option is to just... take the image out of the thing that's spinning.



THE SECOND QUESTION. You've got a couple things here I can see in your code that are probably causing the issue, but fortunately, they're very simple fixes!

The first is how you're writing your newclass. Very excited to see you using the glitch correctly, BUT, there's one thing to remember. [ newclass=.whatever] and [/ newclass] tags replace the first and last squiggly brackets in your CSS. For example, in your first class, you have:

[ newclass=".circle-wrapper"] { position: relative; width: 150px; height: 150px; float: left; margin: 10px;}[/ newclass]

But the { and } are unnecessary, because your newclass tags in front and back are effectively taking their place! In your second class, .circle, you only need to remove the opening { bracket, because if you read the CSS inside, the final closing } is already gone (and correctly so).

The second is that, in .circle, you have animation: spin 10s linear infinite; - but your keyframes are named 'rotate'. Remember that you need to call for the animation you want by using the name right behind '@keyframes'. In this case, you can either change your CSS to animation: rotate 10s linear infinite; OR change your keyframes to @keyframes spin, so that the name matches and it knows what to pull.

Hopefully this helps! ;u;b
last edit on Feb 11, 2022 19:20:18 GMT by pharaoh leap
Stardust in me
aliasEm, Dragon
pronounsShe/Her/Hers
773written posts
rabbitearsearned bits
offlinecurrently
rabbitears
Part of the Furniture
rabbitears Avatar
We're motivated by the stars that we're made of
Okay I've tried several ways, but I can't make the image move up. Every time I put position:relative; top:-150; anywhere that effects it, that just ... disappears. What am I doing wrong?

[attr="class","circle-wrapper"]
[attr="class","circle"]
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed a lectus purus. Nam eleifend augue ac dignissim tempor. Duis congue sagittis leo, quis congue mi sagittis id. Suspendisse at volutpat nunc. Sed finibus rhoncus dui, ac venenatis ex consectetur et. In hac habitasse platea dictumst. Nullam iaculis efficitur justo, at mattis ex tempor et. Ut a bibendum nulla, nec vehicula sapien. Aenean condimentum sem eu tortor dapibus elementum vel nec mauris. Phasellus mi mi, gravida eu sapien eu, scelerisque molestie nisl. Nam venenatis vulputate dui ut maximus. Nunc maximus at sapien in sollicitudin. Duis volutpat viverra massa in viverra.

Curabitur sapien orci, rhoncus id euismod sit amet, cursus ut magna. Curabitur eu dapibus dolor, sit amet rutrum sapien. In lacus purus, vulputate id felis et, aliquam vehicula risus. Quisque tempor mauris nec nibh suscipit blandit. Nulla facilisi. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce aliquet urna sit amet tellus mattis, eu lobortis lorem vestibulum. Etiam congue pulvinar erat ac euismod. Phasellus sit amet placerat mi. Morbi sollicitudin tempor turpis vel gravida. Morbi sit amet convallis ipsum. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Proin convallis viverra lectus sed egestas. Sed auctor vulputate quam, vel rutrum tortor dapibus quis. Duis imperdiet, tellus vel tincidunt gravida, dui dolor elementum elit, et ultricies ligula est in diam. Nullam eleifend ipsum ac commodo tristique.

Suspendisse vehicula eu justo id suscipit. Interdum et malesuada fames ac ante ipsum primis in faucibus. Etiam vehicula, augue nec tincidunt posuere, odio odio euismod quam, quis auctor risus nisl ut leo. Integer dapibus varius vehicula. In a lorem convallis, molestie elit vel, vulputate nulla. Fusce fermentum interdum mi, sed blandit sem sollicitudin non. Integer faucibus lorem nec imperdiet ullamcorper. Donec nec ipsum nulla. Aliquam at felis aliquam, pulvinar orci eu, viverra nisl. Cras aliquam ipsum ut tellus maximus, at facilisis nulla maximus. Aliquam semper lorem et libero tincidunt pellentesque. Donec sit amet faucibus mauris, fringilla pulvinar leo. Mauris tellus mauris, tincidunt ac accumsan vitae, hendrerit in libero.

In pellentesque eget erat quis euismod. Maecenas tortor sapien, fringilla posuere purus vel, pretium volutpat enim. Vivamus quis bibendum diam, id finibus odio. Nunc malesuada scelerisque nisl eget consequat. Etiam sollicitudin sit amet massa ultrices iaculis. Nunc ultricies diam eros, id commodo velit venenatis eget. Sed blandit aliquet orci, eu porttitor tortor sollicitudin eu. Aenean semper maximus congue. Nulla pretium ullamcorper tellus a suscipit. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vivamus suscipit cursus justo, a vestibulum neque ullamcorper sed. Aliquam egestas bibendum gravida.

Phasellus eu feugiat ipsum, quis sagittis mauris. Duis porta nibh a turpis euismod, eget sodales tortor aliquet. Vestibulum a velit pretium, semper ligula et, porta velit. Nulla vel nisl odio. Proin congue leo elit, et pulvinar tellus finibus nec. Nam accumsan venenatis sapien sed ullamcorper. Sed porttitor vel lacus id mollis. Sed sodales libero dui. Donec efficitur leo eget odio lacinia, quis dapibus nibh sagittis.


[newclass=".circle-wrapper"]position: relative; width: 150px; height: 150px; float: left; margin: 10px;[/newclass]
[newclass=".circle"]display: block; width: 100%; height: 100%; border-radius: 45%; padding: 2.5px; border:2.5px dashed #90548a; background-clip: content-box; animation: rotate 10s linear infinite; }@keyframes rotate {100% {transform: rotate(1turn);[/newclass]

[div align="center"][div align="justify" style="width:400px;background-image:url(https://img.nickpic.host/uCo5VJ.jpg);padding:50px;"][div style="float:right;padding:5px;"][attr="class","circle-wrapper"][div][attr="class","circle"][/div][img style="width:150px;border-radius:45%;padding-left:5px;" src="https://via.placeholder.com/150"][/div][div style="padding:10px;background-color:#e6aae6;color:black;"]Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed a lectus purus. Nam eleifend augue ac dignissim tempor. Duis congue sagittis leo, quis congue mi sagittis id. Suspendisse at volutpat nunc. Sed finibus rhoncus dui, ac venenatis ex consectetur et. In hac habitasse platea dictumst. Nullam iaculis efficitur justo, at mattis ex tempor et. Ut a bibendum nulla, nec vehicula sapien. Aenean condimentum sem eu tortor dapibus elementum vel nec mauris. Phasellus mi mi, gravida eu sapien eu, scelerisque molestie nisl. Nam venenatis vulputate dui ut maximus. Nunc maximus at sapien in sollicitudin. Duis volutpat viverra massa in viverra.

Curabitur sapien orci, rhoncus id euismod sit amet, cursus ut magna. Curabitur eu dapibus dolor, sit amet rutrum sapien. In lacus purus, vulputate id felis et, aliquam vehicula risus. Quisque tempor mauris nec nibh suscipit blandit. Nulla facilisi. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce aliquet urna sit amet tellus mattis, eu lobortis lorem vestibulum. Etiam congue pulvinar erat ac euismod. Phasellus sit amet placerat mi. Morbi sollicitudin tempor turpis vel gravida. Morbi sit amet convallis ipsum. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Proin convallis viverra lectus sed egestas. Sed auctor vulputate quam, vel rutrum tortor dapibus quis. Duis imperdiet, tellus vel tincidunt gravida, dui dolor elementum elit, et ultricies ligula est in diam. Nullam eleifend ipsum ac commodo tristique.

Suspendisse vehicula eu justo id suscipit. Interdum et malesuada fames ac ante ipsum primis in faucibus. Etiam vehicula, augue nec tincidunt posuere, odio odio euismod quam, quis auctor risus nisl ut leo. Integer dapibus varius vehicula. In a lorem convallis, molestie elit vel, vulputate nulla. Fusce fermentum interdum mi, sed blandit sem sollicitudin non. Integer faucibus lorem nec imperdiet ullamcorper. Donec nec ipsum nulla. Aliquam at felis aliquam, pulvinar orci eu, viverra nisl. Cras aliquam ipsum ut tellus maximus, at facilisis nulla maximus. Aliquam semper lorem et libero tincidunt pellentesque. Donec sit amet faucibus mauris, fringilla pulvinar leo. Mauris tellus mauris, tincidunt ac accumsan vitae, hendrerit in libero.

In pellentesque eget erat quis euismod. Maecenas tortor sapien, fringilla posuere purus vel, pretium volutpat enim. Vivamus quis bibendum diam, id finibus odio. Nunc malesuada scelerisque nisl eget consequat. Etiam sollicitudin sit amet massa ultrices iaculis. Nunc ultricies diam eros, id commodo velit venenatis eget. Sed blandit aliquet orci, eu porttitor tortor sollicitudin eu. Aenean semper maximus congue. Nulla pretium ullamcorper tellus a suscipit. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vivamus suscipit cursus justo, a vestibulum neque ullamcorper sed. Aliquam egestas bibendum gravida.

Phasellus eu feugiat ipsum, quis sagittis mauris. Duis porta nibh a turpis euismod, eget sodales tortor aliquet. Vestibulum a velit pretium, semper ligula et, porta velit. Nulla vel nisl odio. Proin congue leo elit, et pulvinar tellus finibus nec. Nam accumsan venenatis sapien sed ullamcorper. Sed porttitor vel lacus id mollis. Sed sodales libero dui. Donec efficitur leo eget odio lacinia, quis dapibus nibh sagittis.[/div][/div][/div][div align="center" style="font-family:arial;font-size:7px;padding:5px;"][a href="https://pixel-perfect.boards.net/user/2944"]by Em[/a][/div]

[newclass=".circle-wrapper"]position: relative;  width: 150px;  height: 150px;  float: left;  margin: 10px;[/newclass]
[newclass=".circle"]display: block;  width: 100%;  height: 100%;  border-radius: 45%;  padding: 2.5px;  border:2.5px dashed #90548a; background-clip: content-box;  animation: rotate 10s linear infinite; }@keyframes rotate {100% {transform: rotate(1turn);[/newclass]
internally screaming
pronounsshe/her
1,847written posts
Nekoearned bits
offlinecurrently
Neko
Administrator
Neko Avatar
stressed, depressed, and probably not well-dressed
Personally I would fix it where your div is separate - but if you just want a kind of work around, you could change your circle animation to add

display: relative;

and add to your image inline,

position: absolute;
   margin-top: -155px;


While this really isn't the best because you want to not have to rely on that, if you don't want to bother with that then you can use this kind of fix even though I don't suggest it! I'm not the greatest at explaining but hopefully mozilla can help you out. I would suggest trying to isolate the icon so it's not effected by the spin. I don't have access to my codepen right now but if you need more help outside of this let me know cause when I get home I can try to pull it up and explain step by step. 
Stardust in me
aliasEm, Dragon
pronounsShe/Her/Hers
773written posts
rabbitearsearned bits
offlinecurrently
rabbitears
Part of the Furniture
rabbitears Avatar
We're motivated by the stars that we're made of
[attr="class","circle-wrapper"]
[attr="class","circle"]
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed a lectus purus. Nam eleifend augue ac dignissim tempor. Duis congue sagittis leo, quis congue mi sagittis id. Suspendisse at volutpat nunc. Sed finibus rhoncus dui, ac venenatis ex consectetur et. In hac habitasse platea dictumst. Nullam iaculis efficitur justo, at mattis ex tempor et. Ut a bibendum nulla, nec vehicula sapien. Aenean condimentum sem eu tortor dapibus elementum vel nec mauris. Phasellus mi mi, gravida eu sapien eu, scelerisque molestie nisl. Nam venenatis vulputate dui ut maximus. Nunc maximus at sapien in sollicitudin. Duis volutpat viverra massa in viverra.

Curabitur sapien orci, rhoncus id euismod sit amet, cursus ut magna. Curabitur eu dapibus dolor, sit amet rutrum sapien. In lacus purus, vulputate id felis et, aliquam vehicula risus. Quisque tempor mauris nec nibh suscipit blandit. Nulla facilisi. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce aliquet urna sit amet tellus mattis, eu lobortis lorem vestibulum. Etiam congue pulvinar erat ac euismod. Phasellus sit amet placerat mi. Morbi sollicitudin tempor turpis vel gravida. Morbi sit amet convallis ipsum. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Proin convallis viverra lectus sed egestas. Sed auctor vulputate quam, vel rutrum tortor dapibus quis. Duis imperdiet, tellus vel tincidunt gravida, dui dolor elementum elit, et ultricies ligula est in diam. Nullam eleifend ipsum ac commodo tristique.

Suspendisse vehicula eu justo id suscipit. Interdum et malesuada fames ac ante ipsum primis in faucibus. Etiam vehicula, augue nec tincidunt posuere, odio odio euismod quam, quis auctor risus nisl ut leo. Integer dapibus varius vehicula. In a lorem convallis, molestie elit vel, vulputate nulla. Fusce fermentum interdum mi, sed blandit sem sollicitudin non. Integer faucibus lorem nec imperdiet ullamcorper. Donec nec ipsum nulla. Aliquam at felis aliquam, pulvinar orci eu, viverra nisl. Cras aliquam ipsum ut tellus maximus, at facilisis nulla maximus. Aliquam semper lorem et libero tincidunt pellentesque. Donec sit amet faucibus mauris, fringilla pulvinar leo. Mauris tellus mauris, tincidunt ac accumsan vitae, hendrerit in libero.

In pellentesque eget erat quis euismod. Maecenas tortor sapien, fringilla posuere purus vel, pretium volutpat enim. Vivamus quis bibendum diam, id finibus odio. Nunc malesuada scelerisque nisl eget consequat. Etiam sollicitudin sit amet massa ultrices iaculis. Nunc ultricies diam eros, id commodo velit venenatis eget. Sed blandit aliquet orci, eu porttitor tortor sollicitudin eu. Aenean semper maximus congue. Nulla pretium ullamcorper tellus a suscipit. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vivamus suscipit cursus justo, a vestibulum neque ullamcorper sed. Aliquam egestas bibendum gravida.

Phasellus eu feugiat ipsum, quis sagittis mauris. Duis porta nibh a turpis euismod, eget sodales tortor aliquet. Vestibulum a velit pretium, semper ligula et, porta velit. Nulla vel nisl odio. Proin congue leo elit, et pulvinar tellus finibus nec. Nam accumsan venenatis sapien sed ullamcorper. Sed porttitor vel lacus id mollis. Sed sodales libero dui. Donec efficitur leo eget odio lacinia, quis dapibus nibh sagittis.


[newclass=".circle-wrapper"]position: relative; width: 150px; height: 150px; float: left; margin: 10px;[/newclass]
[newclass=".circle"]display: block; position:relative; width: 100%; height: 100%; border-radius: 45%; padding: 2.5px; border:2.5px dashed #90548a; background-clip: content-box; animation: rotate 10s linear infinite; }@keyframes rotate {100% {transform: rotate(1turn);[/newclass]

[div align="center"][div style="width:400px;background-image:url(https://img.nickpic.host/uCo5VJ.jpg);padding:50px;" align="justify"][div style="float:right;padding:5px;"][attr="class","circle-wrapper"][div][attr="class","circle"][/div][img style="width:150px;border-radius:45%;padding-left:5px;margin-top:-155px;" src="https://via.placeholder.com/150"][/div][div style="padding:10px;background-color:#e6aae6;color:black;"]Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed a lectus purus. Nam eleifend augue ac dignissim tempor. Duis congue sagittis leo, quis congue mi sagittis id. Suspendisse at volutpat nunc. Sed finibus rhoncus dui, ac venenatis ex consectetur et. In hac habitasse platea dictumst. Nullam iaculis efficitur justo, at mattis ex tempor et. Ut a bibendum nulla, nec vehicula sapien. Aenean condimentum sem eu tortor dapibus elementum vel nec mauris. Phasellus mi mi, gravida eu sapien eu, scelerisque molestie nisl. Nam venenatis vulputate dui ut maximus. Nunc maximus at sapien in sollicitudin. Duis volutpat viverra massa in viverra.

Curabitur sapien orci, rhoncus id euismod sit amet, cursus ut magna. Curabitur eu dapibus dolor, sit amet rutrum sapien. In lacus purus, vulputate id felis et, aliquam vehicula risus. Quisque tempor mauris nec nibh suscipit blandit. Nulla facilisi. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce aliquet urna sit amet tellus mattis, eu lobortis lorem vestibulum. Etiam congue pulvinar erat ac euismod. Phasellus sit amet placerat mi. Morbi sollicitudin tempor turpis vel gravida. Morbi sit amet convallis ipsum. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Proin convallis viverra lectus sed egestas. Sed auctor vulputate quam, vel rutrum tortor dapibus quis. Duis imperdiet, tellus vel tincidunt gravida, dui dolor elementum elit, et ultricies ligula est in diam. Nullam eleifend ipsum ac commodo tristique.

Suspendisse vehicula eu justo id suscipit. Interdum et malesuada fames ac ante ipsum primis in faucibus. Etiam vehicula, augue nec tincidunt posuere, odio odio euismod quam, quis auctor risus nisl ut leo. Integer dapibus varius vehicula. In a lorem convallis, molestie elit vel, vulputate nulla. Fusce fermentum interdum mi, sed blandit sem sollicitudin non. Integer faucibus lorem nec imperdiet ullamcorper. Donec nec ipsum nulla. Aliquam at felis aliquam, pulvinar orci eu, viverra nisl. Cras aliquam ipsum ut tellus maximus, at facilisis nulla maximus. Aliquam semper lorem et libero tincidunt pellentesque. Donec sit amet faucibus mauris, fringilla pulvinar leo. Mauris tellus mauris, tincidunt ac accumsan vitae, hendrerit in libero.

In pellentesque eget erat quis euismod. Maecenas tortor sapien, fringilla posuere purus vel, pretium volutpat enim. Vivamus quis bibendum diam, id finibus odio. Nunc malesuada scelerisque nisl eget consequat. Etiam sollicitudin sit amet massa ultrices iaculis. Nunc ultricies diam eros, id commodo velit venenatis eget. Sed blandit aliquet orci, eu porttitor tortor sollicitudin eu. Aenean semper maximus congue. Nulla pretium ullamcorper tellus a suscipit. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vivamus suscipit cursus justo, a vestibulum neque ullamcorper sed. Aliquam egestas bibendum gravida.

Phasellus eu feugiat ipsum, quis sagittis mauris. Duis porta nibh a turpis euismod, eget sodales tortor aliquet. Vestibulum a velit pretium, semper ligula et, porta velit. Nulla vel nisl odio. Proin congue leo elit, et pulvinar tellus finibus nec. Nam accumsan venenatis sapien sed ullamcorper. Sed porttitor vel lacus id mollis. Sed sodales libero dui. Donec efficitur leo eget odio lacinia, quis dapibus nibh sagittis.[/div][/div][/div][div align="center" style="font-family:arial;font-size:7px;padding:5px;"][a href="https://pixel-perfect.boards.net/user/2944"]by Em[/a][/div]

[newclass=".circle-wrapper"]position: relative; width: 150px;  height: 150px;  float: left; margin: 10px;[/newclass]
[newclass=".circle"]display: block; position:relative; width: 100%;  height: 100%;  border-radius: 45%;  padding: 2.5px;  border:2.5px dashed #90548a; background-clip: content-box;  animation: rotate 10s linear infinite; }@keyframes rotate {100% {transform: rotate(1turn);[/newclass]


No matter what # I put in for the top margin, the image stays where it is.
last edit on Feb 26, 2022 11:08:33 GMT by rabbitears
internally screaming
pronounsshe/her
1,847written posts
Nekoearned bits
offlinecurrently
Neko
Administrator
Neko Avatar
stressed, depressed, and probably not well-dressed
[nospaces]

[attr="class","infoBG"]
[attr="class","infoBG2"]
[attr="class","infoBack"]
[attr="class","infoTitle"][attr="class","fa fa-star-o"] threadarchived
[attr="class","infoDiv"]

[attr="class","infoBody"]

This thread hasn't had any replies since a month ago - feel free to repost if you wish!