---
title: "Discussion on \"How can I improve this basic site code?\" | Hashnode"
description: "Discussion on \"How can I improve this basic site code?\". I created a basic JS, HTML, CSS site yesterday that rotates an emoji 90 degrees every time the user clicks it.\nTo create the spinning emoji, I created four divs with the original, upright emoji (🔃).\nI gave them each class names that would allow for ..."
url: "https://hashnode.com/posts/how-can-i-improve-this-basic-site-code/620e0a4825673f2740eeb92b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How can I improve this basic site code?](https://getoutofthatgarden.hashnode.dev/how-can-i-improve-this-basic-site-code?utm_source=hashnode&utm_medium=feed)

I created a basic JS, HTML, CSS site yesterday that rotates an emoji 90 degrees every time the user clicks it. To create the spinning emoji, I created four divs with the original, upright emoji (🔃). I gave them each class names that would allow for ...

Feb 17, 2022 · 1 min read · getoutofthatgarden.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#css](https://hashnode.com/tag/css)
-   [#html5](https://hashnode.com/tag/html5)
-   [#js](https://hashnode.com/tag/js)

## Written by

[Niall Harrington](https://hashnode.com/@GetOutOfThatGarden)

@GetOutOfThatGarden · Toronto, ON

  
[View profile](https://hashnode.com/@GetOutOfThatGarden)

Bitcoin Mining Research Assistant & Front-End Developer at York University's Digital Currencies Project

Hello everyone, I'm a recent graduate of Blockchain &amp; Backend Development at York University, Toronto. I started this blog to document my career change journey from bartender to a developer. Since starting this blog in 2022, I have been hired as a research assistant and front-end developer at York's Digital Currencies Project. We are currently working on developing a way to estimate CO2 emissions associated with bitcoin mining. Thanks for joining me.

## Responses 1

Markdown supported · ⌘↵ to post

[Henzzo](https://hashnode.com/@henzzo)

[Feb 17, 2022](https://hashnode.com/posts/how-can-i-improve-this-basic-site-code/620e0a4825673f2740eeb92b/comment/620e36f1d589905b412907b6)

you can use a simple `@keyframe` animation to do the work. Check your repo I created a simple `pull request` to show you some of the changes.

[Niall Harrington](https://hashnode.com/@GetOutOfThatGarden)

[Feb 17, 2022](https://hashnode.com/posts/how-can-i-improve-this-basic-site-code/620e0a4825673f2740eeb92b/comment/620e36f1d589905b412907b6#reply-620e4da125673f2740eec18f)

Amazing. Thanks Henzzo, I'll check that out asap.

[Henzzo](https://hashnode.com/@henzzo)

[Feb 17, 2022](https://hashnode.com/posts/how-can-i-improve-this-basic-site-code/620e0a4825673f2740eeb92b/comment/620e36f1d589905b412907b6#reply-620e60f0d589905b41290c36)

[Niall Harrington](https://hashnode.com/@GetOutOfThatGarden) glad you found it helpful, I haven't put much comment tho, ask me for any confusion.
