首页 > web前端 > css教程 > 正文

Frontend Challenge: Space.

DDD
发布: 2024-09-14 06:18:32
原创
193 人浏览过

Frontend Challenge: Space.

I am still working on this, but wanted to try building in public. The codepen window cuts off parts of the image so click the .5x button.

This is a submission for Frontend Challenge v24.09.04, CSS Art: Space.

Inspiration

The Challenge was space so I started with the background for space. I didn't want pure black so played with some black, blue and purple background: linear-gradient. I ended up with something more pleasing than stark #000 black.

Demo

Here's my codepen. I may switch to just posting the code here when I finish.


The codepen window cuts off parts of the image so click the .5x button.

Journey

I reused some code from when the summer challenge where I drew sunset at the beach. The color gradient in the sun, reminded me of the red spot on Jupiter.

I added a spot by playing with more colors. I didn't want to do the actual solar system and wanted a more stylized version of space. Initially I wanted planets overlapping.

When I made the yellow planet the white gave it more depth. so I added a highlight over the Jupiter like planet.

Next I added a wormhole opening that allowed ships to enter the galaxy. The wormhole is an oval with transform: skew to give the hole some depth.

Wrap up

I really like these frontend challenges. It's always nice to show some creativity in projects.

以上是Frontend Challenge: Space.的详细内容。更多信息请关注PHP中文网其他相关文章!

来源:dev.to
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!