For a Metro-style UI webpage, how does one automatically sort other icons based on the position of the dragged icon after dragging the mouse? Note: The icon size may be different. The result must be retained (the layout will remain unchanged after the page is reloaded). you do not need to consider compatibility. you just need to briefly discuss the general idea...
For a Metro-style UI webpage, how does one automatically sort other icons based on the position of the dragged icon after dragging the mouse?
Note:
-
The icon size may be different;
-
The results must be retained (the layout remains unchanged after the page is reloaded );
-
There is no need to consider compatibility. you only need to briefly discuss the general idea.
The effect is like the Start menu of Windows 10:
Reply content:
For a Metro-style UI webpage, how does one automatically sort other icons based on the position of the dragged icon after dragging the mouse?
Note:
-
The icon size may be different;
-
The results must be retained (the layout remains unchanged after the page is reloaded );
-
There is no need to consider compatibility. you only need to briefly discuss the general idea.
The effect is like the Start menu of Windows 10:
According to the coordinates, an icon is dragged to a position. the coordinates of the icon are the coordinates of the new position. the coordinates of the affected icon are subtracted from the width or width of the dragged icon.
There should be corresponding plug-ins.
I personally think it can be understood as two locations for exchange. if you used a plug-in yesterday, you can try "sortable. js? 1.1.9 "very small, about 3 kB, and easy to use
I suggest using a plug-in if it's fast. I think it's awesome to write it myself.
Official implementation and documentation
Metroui: http://metroui.org.ua/
Start-screen: http://metroui.org.ua/templat...