brenna / csshexagon Goto Github PK
View Code? Open in Web Editor NEWPure CSS hexagon generator, built with AngularJS
Home Page: http://brenna.github.io/csshexagon
License: MIT License
Pure CSS hexagon generator, built with AngularJS
Home Page: http://brenna.github.io/csshexagon
License: MIT License
Hello Brenna,
I'm loving this nifty tool. I've noticed some improvements for the image version.
Problem one: if the hexagon's parent is set to text-center, then the images will be messed up:
Simply add text-align: left;
to the main hexagon element.
Those edges got me annoyed, but I fear no CSS. The solution is to displace the bg image, so it won't bleed through :)
Add this to hexTop, hexBottom.
background-position: -250% -250%;
background-repeat: no-repeat;
I could send a pull request.
Hi,
Is there a way to do a flat top hexagon instead ?
Hello,
when I generate code for hexagon with border in application, it looks good but the result in jsfiddle and my page looks bad.
JSfiddle: https://jsfiddle.net/L2cazftz/
Using this image as an example
https://atlus-dev.s3.sa-east-1.amazonaws.com/80dc836d-a9d1-4f56-9108-76bf074f1eba.png
Only copying the generated CSS I have a problem that the image gets distorted on hexTop and hexBottom. On your website it looks fine because there is a "hidden" CSS attribute not shown which is background-color.
I was able to figure this out by inspecting the code on the website but I think we should add this attribute on the generated CSS in the right area.
I attached a screenshot of the problem I was having if I didn't figure it out by inspecting the website.
like on this page https://jtauber.github.io/articles/css-hexagon.html
when direction is rtl the background image of hexagon is messed up, an easy fix can be just adding direction: ltr to the .hexagon class in generated css
Would be nice to see an example of how to add hover effects onto the hexagon and have this part of the generator also.
But here's what I got after implementation:
I inspected the whole thing, something is fishy when implemented. I checked every properties that affected the behaviour of the three div elements, and found only some extra font related properties affecting them. I deactivated them to understand if there's any connection there, and found no clue.
How can I solve it?
Text in the center of the Hexagon would be nice.
I am in middle of a project and had to stop to look at the css to add it myself because I could not add the text at first attempt.
Beautiful Project! :)
Great Job!
Using this image as an example
https://atlus-dev.s3.sa-east-1.amazonaws.com/80dc836d-a9d1-4f56-9108-76bf074f1eba.png
Only copying the generated CSS I have a problem that the image gets distorted on hexTop
and hexBottom
. On your website it looks fine because there is a "hidden" CSS attribute not shown which is background-color
.
I was able to figure this out by inspecting the code on the website but I think we should add this attribute on the generated CSS in the right area.
I attached a screenshot of the problem I was having if I didn't figure it out by inspecting the website.
Hey,
I had the requirement to create a hexagon (which I thought was impossible originally) but here we are, amazing work thank you!
I was wondering if you would be willing to create a SCSS mixin or pass along the formulas for each width/height/margin, etc?
For the project I am working on, I will possibly need various sizes, and don't really want to have lots of different classes for each size.
My last question is is there a way to round the edges to be a bit "smoother"? (I have a feeling there is not, but I could be wrong, again).
Thanks in advance.
I try , Here center on all other browsers except for Apple Safari (on macOS and iOS).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.